点击链接不起作用,显示下面的错误。我试着用XPath和链接文字尝试点击链接时出错
代码
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>"
你确定这条路是对的吗? – strash
欢迎来到Stack Overflow!请[参观](http://stackoverflow.com/tour)了解网站的工作原理以及在这里的主题。 –
[Debugging]元素的可能重复点不可点击“error”(http://stackoverflow.com/questions/11908249/debugging-element-is-not-clickable-at-point-error) – SiKing