Guest User

Untitled

a guest
Jul 18th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. const loadMyPage = {
  2. loadThePage: async function(driver) {
  3. try {
  4. await driver.wait(
  5. until.elementLocated(
  6. By.css("div.radio-select span:nth-child(7)")
  7. ),
  8. 20000
  9. );
  10. } catch (e) {
  11. console.trace(loadMyPage.loadThePage);
  12. throw e;
  13. }
  14. }
  15.  
  16. TypeError: Wait condition must be a promise-like object, function, or a Condition object[0m[90m
  17. at Driver.wait (node_modules/selenium-webdriver/lib/webdriver.js:928:13)
  18. at Object.loadMyPage (foobar-tests/page.js:35:20)
  19. at Context.<anonymous> (foobar-tests/foobar.test.js:32:30)
  20. at <anonymous>
Add Comment
Please, Sign In to add comment