org.openqa.selenium.ElementNotInteractableException: element not interactable

F12查看元素确实存在的

有人说延长加载时间

        webDriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); // 等待5秒加载完成

因为,这个部分不是刚开始的那个frame

 点击按钮后

这就是iframe的问题(后来通过F12查看到)

  webDriver.switchTo().frame("statusframe");就可以

具体的id用f12查看

 

posted @ 2019-08-06 22:05  不打鱼光晒网  阅读(3756)  评论(0编辑  收藏  举报