@testim/testim-cli
Version:
Command line interface for running Testing on you CI
35 lines (32 loc) • 948 B
JavaScript
var WebdriverIO = require('../../'),
matrix = WebdriverIO.multiremote({
browserA: {
desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
args: [
'use-fake-device-for-media-stream',
'use-fake-ui-for-media-stream',
]
}
}
},
browserB: {
desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
args: [
'use-fake-device-for-media-stream',
'use-fake-ui-for-media-stream',
]
}
}
}
});
var channel = Math.round(Math.random() * 100000000000);
matrix
.init()
.url('https://apprtc.appspot.com/r/' + channel)
.click('#confirm-join-button')
.pause(5000)
.end();