@davert the above “View in #general on Slack” is broken for me, it redirects to a message in a different workspace.
exports.config = {
tests: './*_test.js',
output: './output',
helpers: {
WebDriver: {
url: 'website'',
host: 'selenoid',
port: 4444,
browser: ['chrome', 'firefox'],
windowSize: "1366x768",
fullPageScreenshots: true,
waitForNavigation: [
'load',
'domcontentloaded',
'networkidle0'
]
}
},
multiple: {
basic: {
browsers: [{
browser: "chrome",
desiredCapabilities: {
browserName: 'chrome',
version: '70.0',
enableVNC: true,
enableVideo: false
}
},
{
browser: "firefox",
desiredCapabilities: {
browserName: 'firefox',
version: '63.0',
enableVNC: true,
enableVideo: false
}
}]
}
},
include: {
I: './steps_file.js',
loginPage: './pages/loginPage.js',
mainPage: './pages/mainPage.js'
},
bootstrap: null,
mocha: {},
plugins: {
screenshotOnFail: {
enabled: true,
uniqueScreenshotNames: true,
fullPageScreenshots: true
},
allure: {}
},
timeout: 10000,
name: 'webdriverio_ifx'
}
enableVNC and other desiredCababilities doesnt work! but if remove multiple section and place desired capabilities in helper for chrome works fine
Heya, your problem comes from how and what you pass as capabilities. here is an example of a working multiple section with selenoid
browsers: [
{
browser: 'chrome',
desiredCapabilities: {
'goog:chromeOptions': {
args: [
'--headless',
'--disable-gpu',
'--no-sandbox',
'--disable-setuid-sandbox',
'--ignore-certificate-errors',
`--user-agent=${(process.env.SCREENSIZE === 'mobile') ? MOBILE_UA : DESKTOP_UA}`,
// uncomment the following line if you need the browser console
// '--auto-open-devtools-for-tabs',
],
selenoidOptions: {
enableVNC: true,
enableLog: true,
logName: 'session-log.log',
sessionTimeout: '10m',
},
},
},
},
{
browser: 'firefox',
desiredCapabilities: {
'moz:firefoxOptions': {
'-headless',
'-purgecaches',
`--window-size=${getDevice(process.env.SCREENSIZE).width}x`
+ `${getDevice(process.env.SCREENSIZE).height}`,
// uncomment the following line if you need the browser console
// '-jsconsole',
],
log: {
level: 'trace',
},
},
acceptInsecureCerts: true,
selenoidOptions: {
enableVNC: true,
enableLog: true,
logName: 'session-log.log',
sessionTimeout: '10m',
},
},
},
],