christian-bromann on main
Fix unable to use nativeWebTap … (compare)
dependabot-preview[bot] on npm_and_yarn
Bump typescript from 4.0.5 to 4… (compare)
when it comes to passing in custom parameters to the wdio runner…?
I recommend to have a common config file that contains all things that don’t change in your environments. Then have a config file for each of them and require your main config file and merge your common configs with your env specific configs
it('should test something', function(done) {
return client.click('#button').getValue('#someInput').then(function(value) {
expect(value).to.be.exactly('some value');
});
});
But what is the closest to return client.click('#button').getValue('#someInput') === 'some value'
?But what is the closest to return client.click('#button').getValue('#someInput') === 'some value’ ?
we will probably get to a point where this is gonna be possible
Is WebDriverJS a test framework
I would say no, it is a tool for e2e testing
var cb, options, webdriverio, client;
webdriverio = require('webdriverio');
options = {desiredCapabilities: {browserName: 'chrome'}};
client = webdriverio.remote(options);
cb = function (success) {
return function (result) {
console.log(success, result);
return client.end();
};
};
client.init()
.url('http://www.google.com/')
.waitForExist('div.nonsense')
.then(cb('success'), cb('fail'));
If you want to define specific Mocha settings you can do that by adding mochaOpts to your configuration file