org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with

前端 未结 7 1745
终归单人心
终归单人心 2020-12-30 13:33

I am trying to execute below Selenium Web driver script, But I am getting org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may n

7条回答
  •  北海茫月
    2020-12-30 14:09

    Just put the thread to sleep for some mil seconds

    Thread.sleep(5000);
    WebElement zoneName=driver.findElement(By.xpath("//*[@id=\"zoneName\"]"));
    zoneName.sendKeys("kandy");
    

提交回复
热议问题