【发布时间】:2017-04-10 20:23:56
【问题描述】:
单击链接不起作用,并显示以下错误。我尝试同时使用 Xpath 和 Linktext
代码
driver.findElement(By.linkText("Repayment Options")).click();
driver.findElement(By.xpath(".//*@id='menucontent']/div/nav/ul/li[6]/a")).click();
错误
"Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: Element
<a href="/RepaymentOptions/RepaymentOptions">...</a> is not clickable at point (312, 404).
Other element would receive the click:<div class="modal-backdrop fade"></div>"
【问题讨论】:
-
你确定路径是对的吗?
-
欢迎来到 Stack Overflow!请take the tour 了解该网站的运作方式以及此处的主题问题。
标签: java eclipse google-chrome selenium