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查看

猜你喜欢

转载自www.cnblogs.com/jnhs/p/11312184.html