codeforequity-at / codeforequity-at/botium-core

botium-crawler is unable to detect or run with webdriverio connector

Open
#821 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
251
Forks
70
Avg merge
3h 37m
Merged PRs (30d)
7

Description

**Describe the bug**
I have below file as botium.json which work when I invoke botium-cli run command, browser is opening correctly and all the conversations are happening with bot as expected.
{
"botium": {
"Capabilities": {
"PROJECTNAME": "MyChatbot",
"CONTAINERMODE": "webdriverio",
"WEBDRIVERIO_OPTIONS": {
"capabilities": {
"browserName": "chrome",
"goog:chromeOptions": {
"args": ["--disable-gpu", "--window-size=1280,800"]
}
},
"protocol": "http",
"hostname": "localhost",
"port": 4444,
"path": "/wd/hub"
},
"WEBDRIVERIO_URL": "https://sample.net/",
"WEBDRIVERIO_OPENBOT": "C:/BotiumProject/snippets/openbot.js",
"WEBDRIVERIO_INPUT_ELEMENT": "#textbox",
"WEBDRIVERIO_SEND_BUTTON": "#sen",
"WEBDRIVERIO_OUTPUT_ELEMENT": "#output"
}
}
}

But when I try to run botium-crawler nothing is happening:

Below is my botium-crawler.json file
{
"config": "C:/BotiumProject/botium.json",
"entryPoints": ["Hello"],
"depth": 2
}

When I run botium-cli crawler-run nothing happens no browser is invoked I am not getting error logs as well

Below are few steps I tried to debug
Step 1:
Specified containermode as webdriverio in botium-crawler.json

Step 2:
Tried reinstalling botium core, cli and crawler freshly

Step 3:
Tried directly from command line using below command
botium-cli crawler-run --config ./botium-crawler.json --entryPoints 'hi'

Step 4:
Tried with verbose command.

Even logs are not getting generated neither do I get error message neither browser is launching

*** Versions***
"botium-cli": "^1.1.0",
"botium-core": "^1.15.4",
"botium-crawler": "^0.0.25"

Contributor guide

Open the contributing guide

Research direction

Start with botium-crawler.json and botium.json, then run the reported botium-cli crawler-run command with the supplied entry point and verbose option. Trace how crawler-run loads the config and webdriverio settings; done means the crawler launches the browser, processes the entry point, and reports useful logs or errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.