![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
selenium
深邃如海
这个作者很懒,什么都没留下…
展开
-
Selenim判断单选框选中
dr.find_element_by_xpath("").is_selected 先找到元素定位,一般都是一个input标签 然后直接判断即可原创 2018-10-29 12:30:47 · 179 阅读 · 0 评论 -
Selenium: either the element is no longer attached to the DOM, it is not in the curren
either the element is no longer attached to the DOM, it is not in the curren 元素不再附加到DOM 解决方法 每次都重新寻找xpath,并且加上延时 while n < 30 : path = "/html/body[@class='m-index zy']" diyiti = dr.find_e...原创 2018-10-28 00:46:05 · 2145 阅读 · 0 评论