简体   繁体   English

Webdriver异常-Selenium Webdriver Java

[英]Webdriver Exception - Selenium Webdriver Java

I'm working on selenium for quite a while now, recently I encountered a problem. 我从事硒研究已经有一段时间了,最​​近我遇到了一个问题。 When I run my automation it gets stuck and stops working on random parts of the code, and sends back webdriver exception. 当我运行自动化程序时,它会卡住并停止处理代码的随机部分,并发回webdriver异常。 Now I'm losing my mind because of it, I just can't understand why it happens it doesn't make any sense. 现在我正因为如此而失去理智,我只是不明白为什么会发生,这没有任何意义。 Just now I tried it twice and it stopped in two different locations. 刚才我尝试了两次,它停在两个不同的位置。 If anyone could help me it would be great! 如果有人可以帮助我,那就太好了!

The Exception for which line you are getting, it says ELement is not clickable 您获得哪条线的异常表示ELement不可点击

Replace click event with action class, which will solve this Exception 用操作类替换click事件,这将解决此异常

Actions act = new Actions(driver);
act.moveToElement("Your Webelement").click().perform();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM