4
User
Recs.
Recs.
11
Updates
Last
Updated
Updated
Activity
8 Options
Synchronous JavaScript wrapper around the Java Selenium Webdriver API that eliminated the need for callbacks or promises. Doesn't include any testing framework; you simply use the Selenium Java API.
Specs
Specs are quantitative aspects of the option such as the price
Pros
Pro Synchronous. No promises or callbacks needed.
webdriver-sync avoids this
browser.get("http://foo.html", function() {
browser.title(function(err, title) {
assert.ok(~title.indexOf('foo title'), 'Wrong title!');
browser.elementById('i am a link', function(err, el) {
browser.clickElement(el, function() {
browser.eval("window.location.href", function(err, href) {
assert.ok(~href.indexOf('foo title 2'));
browser.quit();
});
});
});
});
});
in favor of this - completely synchronous API! No promises or callbacks needed:driver.get("http://foo.html");
title = driver.getTitle();
link = driver.findElement(By.id('i am a link'));
link.click();
assert(driver.getCurrentUrl().indexOf('foo title 2') > -1);
title.should.equal('foo title');
console.log(title);
driver.quit();
Know any positive aspects of this option?
Cons
Recommendations
webdriver-sync
Recommended 4 years ago
ConsiderateKullervo hasn’t added their experience, pros or cons to their recommendation.
webdriver-sync
Recommended 9 years ago
Slimothy hasn’t added their experience, pros or cons to their recommendation.