Python+Selenium FAQ

1. Python is likely shutting down

解决方案https://www.cnblogs.com/drake-guo/p/6188366.html

 

 2. Selenium 报错:Element is not clickable at point的解决办法

org.openqa.selenium.ElementClickInterceptedException: Element <div class="el-submenu__title"> is not clickable at point (115,358) because another element <div class="el-loading-mask is-fullscreen el-loading-fade-leave-active el-loading-fade-leave-to"> obscures it

问题原因: 1)元素未被点击,因为它不在视口内。窗口有滚动条的时候,会出现这种情况

                   2)还有一种情况是:元素存在但具有永久叠加

解决方案:修改element.click() ,改为javaScript执行点击  

self.driver.execute_script("arguments[0].click();", element);

3.启动找不到firefox
selenium.webdriver has no attribute firefox
问题原因:问题原因是python的解析器不正确
解决方法: 重新配置就好了

 

posted @ 2019-01-09 16:09  M兔  阅读(151)  评论(0编辑  收藏  举报