NoSuchElementException, Selenium unable to locate element

前端 未结 3 716
滥情空心
滥情空心 2020-11-21 06:09

i would like to find my TextField in selenium, but i dont know how (i use sellenium for the first time).

I tried:

 driver.findElement(By.id(\"originT         


        
3条回答
  •  北海茫月
    2020-11-21 06:33

    Below code will helps you get it resolved

    wait = new WebDriverWait(driver, 60);
    wait.until(ExpectedConditions.presenceOfElementLocated(By.id("originTextField")));
    

    or

    wait = new WebDriverWait(driver, 90);
    wait.until(ExpectedConditions.visibilityOf(element)).wait(20);
    

提交回复
热议问题