NoSuchElementException is occurred during implementation of InternetExplorerDriver in Selenium WebDriver

后端 未结 3 1727
慢半拍i
慢半拍i 2020-12-03 05:45

Currently, I am working on WebDriver to invoke IE browser to run the testing. But I received a NoSuchElementException when I tried to run the simple example bel

3条回答
  •  情深已故
    2020-12-03 06:16

    Try adding implicitly wait like below. Also as Robert said, your URL should have http://

    WebDriver driver = new InternetExplorerDriver(ieCapabilities);
    driver.manage().timeouts().implicitlyWait(90, TimeUnit.SECONDS);
    

提交回复
热议问题