Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const loadMyPage = {
- loadThePage: async function(driver) {
- try {
- await driver.wait(
- until.elementLocated(
- By.css("div.radio-select span:nth-child(7)")
- ),
- 20000
- );
- } catch (e) {
- console.trace(loadMyPage.loadThePage);
- throw e;
- }
- }
- TypeError: Wait condition must be a promise-like object, function, or a Condition object[0m[90m
- at Driver.wait (node_modules/selenium-webdriver/lib/webdriver.js:928:13)
- at Object.loadMyPage (foobar-tests/page.js:35:20)
- at Context.<anonymous> (foobar-tests/foobar.test.js:32:30)
- at <anonymous>
Add Comment
Please, Sign In to add comment