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)
网友评论