點擊鏈接不起作用,顯示下面的錯誤。我試着用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