Reputation: 611
How do I run botium-cli + botium-webdriver-connector in headless mode using chrome browser?
The webpage doesn't work with phantomjs browser
edit: Florian answer works, im running jenkins on ubuntu, also need to add --no-sanbox and --disable-dev-shm-usage option
my final config
"WEBDRIVERIO_OPTIONS": {
"desiredCapabilities": {
"browserName": "chrome",
"chromeOptions": {
"args": [ "--headless", "--no-sandbox", "--disable--dev-shm-usage" ]
}
}
}
Upvotes: 1
Views: 244
Reputation: 1315
There is a Botium sample available using Chrome in headless mode: https://github.com/codeforequity-at/botium-connector-webdriverio/blob/master/samples/botbuilderwebchat/
In botium.json, the webdriver options should be set something like this:
"WEBDRIVERIO_OPTIONS": {
"desiredCapabilities": {
"browserName": "chrome",
"chromeOptions": {
"args": [ "--headless" ]
}
}
},
Upvotes: 2