当元素状态不可见时,@FindBy批注找不到元素。我们正在编写一些搜索引擎优化测试,这些元素在网页上是不可见的。WebElement metaV2 = getDriver().findElement(By.xpath("//meta[@name='description']")); 它会给出一个错误,比如; org.openqa.selenium.ElementNotVisibleExceptionElement not available 有什么想法吗? 谢谢
password); } 但是我得到了一个错误日志:Exceptionin thread "main" org.openqa.selenium.ElementNotVisibleException: Element is not currently visible andso may not be interacted with
Command dura
根据“任择议定书”的评论更新:driver.findElementByXPath("//span[text()='Payment Partner']").click(); Exceptionin thread "main" org.openqa.selenium.ElementNotVisibleException: element not visible;driver.findElementByCssSelector(
ui-btn-right.close-btn.ui-link.ui-btn.ui-btn-a.ui-icon-delete.ui-btn-icon-notext.ui-shadow.ui-corner-all")).click();Exceptionin thread "main" org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and
在运行Java代码时,我试图从网页访问一个文本框,但selenium.ElementNotVisibleException: Element当前不可见,因此可能不会与命令持续时间或超时错误交互。selenium-vodafone\target\capture\screenCapture_20150714201922308.jpg
[2015-07-14 20:19:24 PDT] FAIL: org.openqa.selenium.ElementNotVisibleException: Element is not cur