腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Python
Selenium
上
的
StaleElementReferenceException
错误
、
、
import Byfrom
selenium
.common.exceptions import
StaleElementReferenceException
dd.test()
selenium
.common.exceptions.
StaleElementRefe
浏览 5
提问于2019-11-14
得票数 1
回答已采纳
1
回答
连续单击
selenium
(
python
)中
的
分页“view-more”按钮,以加载JS填充
的
数据
、
、
、
、
我正在尝试抓取一个网站
的
内容,动态点击一个‘加载-更多’按钮。我看到了一些其他
的
,但它们似乎得到了其他类型
的
错误
,或者只是面临版本问题。我正试图解析网站。下面是我
的
密码。但是,如果我在click()调用之后(如下面所示)引入了第二个等待条件,它只单击“多”按钮一次,即该分页步骤加载
的
数据,然后就不会有更多
的
单击。
浏览 6
提问于2016-10-16
得票数 0
回答已采纳
16
回答
Python
Selenium
上
的
StaleElementReferenceException
、
、
、
在
python
中使用
Selenium
时,我遇到以下
错误
:有趣
的
是,该
错误
在for循环中
的
不同时间弹出。正在运行
的
一些相关代码如下: for i
浏览 5
提问于2014-11-19
得票数 82
2
回答
使用
python
访问
selenium
web元素
、
我觉得自己像个彻头彻尾
的
笨蛋,但我不得不这么问,如下所示:from
selenium
import webdriver HovedDomene = '
浏览 0
提问于2011-11-14
得票数 13
回答已采纳
1
回答
Python
-
Selenium
错误
:
StaleElementReferenceException
、
我在
python
中使用
selenium
,我
的
主要函数调用是:actions = ActionChains(driver)admin.log_in_as_admin(driver, actions)admin.log_in_as_admin(drive
浏览 5
提问于2015-07-24
得票数 0
1
回答
Python
2.7中使用
Selenium
的
StaleElementReferenceException
错误
、
、
、
我使用这段代码通过Id清除文本字段(在
python
2.7中使用
Selenium
):search = browser.find_element_by_id('lst-ib')search.send_
浏览 0
提问于2018-04-13
得票数 1
1
回答
Python
Selenium
-
StaleElementReferenceException
、
、
我试着用不同
的
网页抓取一个叫iens
的
网站。现在我可以成功地抓取一页。到目前为止,我
的
代码如下:driver = webdriver.Chrome(chrome_pathitems: return restaurantList 这给了我所需要<e
浏览 1
提问于2016-12-09
得票数 0
2
回答
Selenium
:如果在找到元素后立即使用,则为
StaleElementReferenceException
、
几周前我编写了
selenium
测试,它们在执行时运行良好。Traceback (most recent call last): File &
浏览 6
提问于2015-06-11
得票数 0
1
回答
org.openqa.
selenium
.
StaleElementReferenceException
:陈旧元素引用:元素未附加到用于查找元素
的
页面文档
、
、
loop will continue and we will get exception } 但有时我会在element.getText()这一行得到这个
错误
org.openqa.
selenium
.
StaleElementReferenceException
: stale element reference: element is not attached
浏览 0
提问于2021-11-03
得票数 0
1
回答
selenium
( webdriver.find_elements_by_partial_link_text() )引发
StaleElementReferenceException
,并且不会继续下载所有的
selenium
、
、
、
我正在使用
python
的
selenium
绑定来下载包含字符串"VS“
的
页面上
的
所有链接。问题是列表中
的
第二项不是有效
的
网页(返回404
错误
),如果我手动单击断开
的
链接,它也会返回: File "C:\<e
浏览 0
提问于2015-01-12
得票数 3
2
回答
Selenium
Python
StaleElementReferenceException
、
、
我试图用
Selenium
Python
和Chrome浏览器下载一个网页
上
的
所有pdf文件,但每次会话结束时都会显示以下消息: self.driver.get(current) 请帮帮我..我刚刚尝试了lambda,隐式和显式
的
等待
浏览 9
提问于2016-09-17
得票数 2
回答已采纳
1
回答
如何与
StaleElementReferenceException
一起绕过ignored_exceptions?
、
、
、
、
在填写一些字段后,我有一个“下一步”按钮要点击,但是,我得到了一个"
selenium
.common.exceptions.
StaleElementReferenceException
: Message:
StaleElementReferenceException
但! 如果我添加了一个time.sleep(0.5),那么它将单击该
浏览 11
提问于2022-07-16
得票数 1
回答已采纳
2
回答
Selenium
WebDriver - handle
StaleElementReferenceException
(
Python
)
、
、
、
我正在使用
Selenium
编写
Python
代码,它单击网页
上
的
一个按钮。单击按钮后,按钮将更改为其他内容。我
的
代码运行得非常好,但是
Selenium
将此误解为一个问题。from
selenium
.common.exceptions import
StaleElementReferenceException
browser.find_element_by_xpath: File "/usr/local
浏览 6
提问于2015-12-15
得票数 1
回答已采纳
2
回答
Python
Selenium
StaleElementReferenceException
、
、
、
我已经在其他帖子
上
看到了解决这个问题
的
方法(主要是建议更长
的
等待时间),但我尝试过,但没有成功。下面是我得到
的
错误
: File "LobbyistsPrep.py", line 126, in <module> File "C:\
Python
27\lib\site-packages\
seleni
浏览 1
提问于2018-04-05
得票数 2
1
回答
StaleElementReferenceException
Selenium
Python
、
如果我再见到
StaleElementReferenceException
,我就会失去它。我妻子
的
男朋友在嘲笑我,请帮帮忙。 self.element.is_enabled() except
StaleEleme
浏览 13
提问于2021-04-02
得票数 3
回答已采纳
1
回答
如何在
selenium
python
中排除timoutexception
、
from
selenium
import webdriver print('fail') 我想检测
selenium
是否抛出了一些
错误
,这样它就不会立即崩溃。Nosuchelement和staleelement都能像预期
的
那样完
浏览 35
提问于2021-05-08
得票数 0
回答已采纳
1
回答
使用
selenium
(
python
)遍历webelements列表以检索属性会产生
StaleElementReferenceException
、
、
、
、
我使用
selenium
webdriver在一个网站上进行搜索,该网站给出了多个页面,每个页面上都有几个链接。我
的
目标是创建一个搜索产生
的
所有链接
的
列表。它适用于第一个页面,但当我在第二个页面上时,我试图提取'href‘属性
的
for循环会产生一个
StaleElementReferenceException
。/Versions/3.7/lib/
python
3.7/site-packages/
se
浏览 17
提问于2019-07-10
得票数 0
1
回答
Java-
selenium
上
的
StaleElementReferenceException
错误
、
、
当我运行我
的
代码从flipkart.com选择“立即购买”时,我得到了
StaleElementReferenceException
。这就是我所拥有的,但它不适合我。
浏览 0
提问于2015-08-26
得票数 0
3
回答
我如何忽略
Selenium
中
的
异常?
、
、
、
、
我使用
Python
来抓取网站,但是我
的
爬虫停止了,因为有一个例外: libelle1produit = libelle1produit.decode('utf-8', 'strict') except
StaleElementReferenceException
浏览 6
提问于2016-06-29
得票数 1
回答已采纳
1
回答
web抓取contat列表
selenium
python
、
、
如何使用
Python
中
的
selenium
遍历不一致
的
组中
的
联系人?我尝试了这段代码,出现了这样
的
错误
:
selenium
.common.exceptions.
StaleElementReferenceException
:消息:
的
元素引用已过时;元素不再附加到DOM,它不在当前框架上下文中driver.execute_script("arguments[0].scrollIntoView();",u
浏览 1
提问于2018-06-04
得票数 1
点击加载更多
相关
资讯
《selenium2 python 自动化测试实战》——webdriver错误截图
教你在Windows上搭建Python+Selenium环境
Python爬虫:selenium的填坑心得
Python爬虫之旅之Selenium库的使用
Python+Selenium自动化环境的部署
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券