Skip to content

Commit 74c5a85

Browse files
committed
[js] Missed an isElementPresent call
1 parent d59ccc1 commit 74c5a85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

javascript/node/selenium-webdriver/test/firefox/firefox_test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ test.suite(function(env) {
119119
// refresh doesn't appear to work).
120120
driver.wait(function() {
121121
driver.get(url);
122-
return driver.isElementPresent({id: 'jetpack-sample-banner'});
122+
return driver.findElements({id: 'jetpack-sample-banner'})
123+
.then(found => found.length > 0);
123124
}, 3000);
124125
}
125126
});

0 commit comments

Comments
 (0)