python报错:selenium.common.exceptions.ElementClickInterceptedException

python报错:selenium.common.exceptions.ElementClickInterceptedException:

selenium执行自动化时以下脚本报错

device.find_element_by_xpath('//*[@id="submit"]').click()

在这里插入图片描述

更改脚本如下即可解决问题

 test=device.find_element_by_xpath('//*[@id="submit"]') 
 device.execute_script("arguments[0].click();", test)
发布了23 篇原创文章 · 获赞 32 · 访问量 5033

猜你喜欢

转载自blog.csdn.net/qq_45664055/article/details/102820305