點擊我有以下異常:元件沒有以點(x,y)的
org.openqa.selenium.WebDriverException: Element is not clickable at point (1057.38330078125, 673.13330078125). Other element would receive the click:
button id="ID4b6a687af6934e35b6f355f6305dc481" data-layout="hbox" class="hux-ui-button" type="button" role="button">
正如你所看到的,我試着點擊按鈕 「Speichern」。但奇怪的是,錯誤說他不能點擊位置,但其他元素是我想要點擊的按鈕。
你知道我爲什麼以及如何解決這個問題嗎?
的xpath = //span[text()='Speichern'
FF = 43.0
硒= 2.49。
通過在控制檯中執行'$ x(「// span [text()='Speichern']」)'來獲得單個元素嗎?你在網頁上是否有固定的禁止/菜單? –
那就是結果:Array []。帶有這三個按鈕的酒吧是相對的。 –
你有一個固定的橫幅像twitter https://twitter.com/search?q=twitter?嘗試使用Chrome在發生異常時查看屏幕截圖,以查看隱藏按鈕的內容。 –