christian-bromann on main
fix #6531 return correct test s… (compare)
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