Selenium WebDriver wait till element is displayed

后端 未结 9 810
死守一世寂寞
死守一世寂寞 2020-11-29 04:14

I have searched on Google and the SO site and I get answers for JAVA but do not seem to get answers for node.js

I have a web app that takes time to load. I would like

9条回答
  •  盖世英雄少女心
    2020-11-29 04:17

    Writing asynchronous function to avoid this problem

    (async function() {
      let url = args[0];
      await driver.get(url);
      driver.quit();
    })();
    

提交回复
热议问题