javascript selenium 常见的错误

2022-03-04  本文已影响0人  米诺zuo
ElementNotInteractableError: element not interactable

This could happen due to various reasons like element being not visible or displayed, element is off screen or element is behind another element or hidden.

 driver.actions().click(await driver.findElement(By.xpath(xpath))).perform();
stale element reference: element is not attached to the page document

页面刷新, 需要重新定位下元素

await driver.findElement(By.xpath(xpath)
上一篇下一篇

猜你喜欢

热点阅读