美文网首页
javascript selenium 常见的错误

javascript selenium 常见的错误

作者: 米诺zuo | 来源:发表于2022-03-04 10:49 被阅读0次
    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)
    

    相关文章

      网友评论

          本文标题:javascript selenium 常见的错误

          本文链接:https://www.haomeiwen.com/subject/xoqxwktx.html