github-actions[bot] on v7.1.0
v7.1.0 (compare)
github-actions[bot] on main
v7.1.0 (compare)
github-actions[bot] on v7.1.0
christian-bromann on main
move @types/aria-query to depen… (compare)
it 'wait for load', (done) ->
client.waitForExist 'selector', done
browserName: “phantomjs”
, yes this might be likely but a common case - phantomjs is good for developing/writing your test specs and then run them across different browser in your ci system, it might be a good idea to have multiple config files for dev and ci environment
Is there any work underway from the Xolvio guys, or only plans at this stage?
I am in contact with the sam and sanjo. Last one got fibers working in chimp which looks really awesome. I haven’t had much time to port that fully to webdriverio. My plan is to let user decide how to handle async. people will be able to decide whether they want to write synchronous tests only, promise chains only or a mixure using promises and yield .. so excited for that
Anyone who's has tried to trigger client side events? For instance to trigger the change event on a certain <input>?
nope, you can inject javascript to trigger it, using addCommand you can make yourself handy commands to invoke different events. Wondering if something like a trigger command would be useful that would fullfil such thing (would only work in desktop browser though)
I'm running WDIO with cucumber. For debugging purposes, what's the best way to make it not close the browser when the test fails?
make use of the debug command: http://webdriver.io/api/utility/debug.html .. it let you jump into the browser before an assertion
function seal(cb) {
return function() {
cb();
}
}
it('wait for load', function(done) {
client.waitForExist('selector').then(seal(done), done);
});
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'));