腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
如何解决Selenium中
的
NoSuchElementException
错误?
selenium
、
web-scraping
I正在跟踪一个关于通过selenium抓取玻璃门网站
的
在线教程。我
的
代码无法通过以下语句: driver.find_element_by_class_name("
selected
").click() print(' x out worked') except
NoSuchElementException<
浏览 3
提问于2021-03-25
得票数 0
2
回答
Python selenium find_element_by_class_name.click不工作
python
、
python-3.x
、
selenium
、
selenium-webdriver
、
onclick
Attendance.Dashboard.WeeklyData.updateCheckOut(true)">按钮应该被点击,我得到了错误:
方法
消息
:
没有
这样
的
元素
:
找不到
元素
:{“selenium.common.exceptions.
NoSuchElementException
:”
浏览 0
提问于2021-07-07
得票数 0
1
回答
NoSuchElementException
:
消息
:
没有
这样
的
元素
:
找不到
元素
:{“
方法
”:“
css
选择器
”,“
选择器
”:“.
selected
”}
python
、
selenium
、
web-scraping
、
screen-scraping
、
scrape
enter image description here这是我第一次使用selenium,如果有人能帮我解决这个问题,我将不胜感激 “
方法
:
消息
:无此类
元素
:
找不到
元素
:{”
NoSuchElementException
“:”
css
选择器
“,”
选择器
“:”.
selected
“}(会话信息: chrome=89.0.4389.114)” 基本上,我在GitHub上发现了这段代码,它说在10分钟内抓取玻璃门,这对我来说不是
浏览 20
提问于2021-04-20
得票数 0
1
回答
正在从nasdaq下载csv -下载按钮上
没有
链接
python-3.x
、
selenium-webdriver
、
selenium-chromedriver
chrome webdriver)做到这一点,也
没有
找到另一种
方法
来做到这一点。问题是按钮
没有
html链接,因为我相信这是一个javascript进程,所以我可以抓取它,因此进行了筛选。 我已经检查了其他Q&A,但
没有
完成此任务
的
答案。 请帮帮我!driver.find_element_by_name("Download CSV") driver.find_element_by_class_name("button") 第一个错误
浏览 17
提问于2021-04-27
得票数 0
3
回答
NoSuchElementException
:
没有
这样
的
元素
:无法找到
元素
:
css
选择器
,但是im使用find_element
python
、
selenium-webdriver
、
selenium-chromedriver
、
selenium-ide
我使用selenium IDE来跟踪我
的
UI活动。我从IDE获得了以下代码,并在UI中进行了检查,但在使用find_element by id时,我得到了
css
选择器
错误。driver.find_element(By.ID, "button-1034-btnIconEl").click()引发exception_class(
消息
、屏幕、堆栈跟踪)
NoSuchElementException
:
没有
这样
的
元素</em
浏览 0
提问于2019-12-12
得票数 0
5
回答
用双下划线按类名定位
元素
python
、
selenium
我试着按类名查找
元素
。不幸
的
是,我必须选择
的
类名包含双下划线,并引发一个“
没有
这样
的
元素
”错误。= result.find_element_by_class_name('result-list-entry__data')selenium.common.exceptions.
NoSuchElementException
:
消息
:
没有
这样
的
<em
浏览 3
提问于2019-10-04
得票数 3
回答已采纳
1
回答
是否存在捕获selenium测试失败
消息
(比如TestContext中
的
时间期望)
的
方法
?
selenium
、
nunit
我有代码来捕捉测试失败时
的
截图。我现在要做
的
是用"TestContext.CurrentContext.Test.ID + "_"+ TestContext.CurrentContext.Test.Name“命名屏幕截图。我想向它添加测试失败
消息
,类似于" message : OpenQA.Selenium.
NoSuchElementException
: no“
元素
:无法定位
元素
:{”
方法
“:”
css
选
浏览 5
提问于2017-09-07
得票数 0
3
回答
无法找到AWS登录页
的
邮件入口框。
selenium
、
selenium-webdriver
、
xpath
、
css-selectors
我尝试了
css
选择器
和xpath,但是selenium仍然无法定位
元素
。我
的
css
选择器
是,我
的
代码是, emailBox.sendKeys(email); 错误是
浏览 1
提问于2019-12-05
得票数 0
回答已采纳
1
回答
Java Selenium - POM - html xpath -
没有
这样
的
元素
:无法定位
元素
java
、
html
、
selenium
、
xpath
当我试图在下找到用于测试facebook "create“>”sign up“按钮
的
web
元素
时,我发现了这个错误。我尝试了各种选项,比如by类名称(
CSS
选择器
),以及复制系统xpath,但是得到了相同
的
错误
消息
。org.openqa.selenium.
NoSuchElementException
:
没有
这样
的
元素
:无法定位
元素
/driver.find
浏览 7
提问于2020-09-24
得票数 0
1
回答
巨蟒硒。不能点击按钮
python
、
selenium
、
selenium-webdriver
、
webdriver
我试图点击“登录”按钮,但是我得到了各种错误,比如:login_button = driver.find_element('name','Sign In') login_button.submit
浏览 1
提问于2022-08-15
得票数 0
回答已采纳
1
回答
访问网页中
的
列表框时
的
NoSuchElementException
python
、
html
、
selenium
我正在使用使用Python
的
selenium。我正在尝试访问网页中
的
列表框,但收到以下错误。selenium.common.exceptions.
NoSuchElementException
: 下面给出了我试图访问
的
列表框
的
HTML标记: <select id=&quo
浏览 0
提问于2016-10-21
得票数 2
3
回答
我
的
java/selenium项目突然出现了错误,但是web应用程序中
的
元素
仍然存在。有人知道怎么解决这个问题吗?
java
、
selenium
、
nosuchelementexception
、
staleelementreferenceexception
我
的
java/selenium项目突然出现了错误,但是web应用程序中
的
元素
仍然存在。所以我突然得到了一些奇怪
的
东西。直到今天早上一切都很顺利。我已经执行这些测试1000次了,同时也
没有
改变任何前端。错误示例: org.openqa.seleni
浏览 4
提问于2019-09-30
得票数 0
1
回答
如何通过python中标记
的
属性选择
元素
python
、
selenium
我试图在python中使用selenium访问多个标记
的
文本。<p itemprop="articleBody">我不能使用“按标签名称选择
元素
”,因为有不同属性
的
标记"p“,我不想包含这些属性。我使用下面的代码来
浏览 2
提问于2018-12-22
得票数 1
回答已采纳
2
回答
find_element_by_
css
_selector('a').get_attribute('href')返回
NoSuchElementException
python
、
selenium
、
web-scraping
我正在努力刮product_links
的
目标网站。程序应该在浏览器中打开所需
的
URL,并使用特定
的
类名刮取所有链接。但出于某种原因,我得到了这段代码
的
NoSuchElementException
self.driver.implicitly_wait(15) product_links.appen
浏览 6
提问于2020-06-21
得票数 1
2
回答
无法使用Python在Selenium中定位
元素
?
python
、
selenium
、
selenium-webdriver
、
web-scraping
、
automation
以下是网站链接:我一直想弄到div
的
文本。 #Html代码我尝试了这两行python代码:TeleFonosdriver.find_element_by_class_name("telefonos") pri
浏览 2
提问于2021-04-29
得票数 0
2
回答
如何使用python在无头模式下运行铬驱动程序?
python
、
selenium
、
google-chrome
、
webdriver
、
headless
我无忧无虑地执行我
的
程序。我是做这个
的
opt.headless = Truebrowser = webdriver.Chromebrowser.get_screenshot_as_file("screenshot.jpg")username_input = browser.find_element_by_
css
_selector("i
浏览 0
提问于2021-06-25
得票数 0
2
回答
如何使用Selenium和Python从下拉列表中选择值
python-3.x
、
selenium
、
select
、
xpath
style_input_item" name="AccountEnable" id="Enable" value="0" onchange="onPageDataChange()"> <option value="0"
selected
="
selected
"><script>T("Disabled")</script>Disabled</
浏览 1
提问于2016-12-06
得票数 0
1
回答
not驱动程序
没有
在页面上找到
元素
python
、
html
、
selenium
、
selenium-webdriver
我使用来访问包含链接
的
div
元素
。由于某种原因,Webdriver无法找到这个div。页面上
的
其他div
元素
似乎都是由webdriver随机查找
的
。以下是页面的html:突出显示是我需要选择
的
div。这个div中
的
所有其他类名也是不可找到
的
。我试图寻找
元素
的
代码: driver.find_element_by_class_name('carouselNav__listWrapper recipe
浏览 3
提问于2021-08-14
得票数 2
回答已采纳
1
回答
如何使用在浏览器
的
第二个窗口上单击A按钮
python
、
selenium
我正在从事一个项目,在这个项目中,具有python和selenium
的
代理进行购物,现在当我单击google plus按钮时,如图所示,google plus按钮工作正常,但是当我尝试用selenium单击第二个窗口中
的
帐户(daigram中
的
2个数字)时,它会给出以下错误,甚至我尝试使用不同
的
选择器
:account=driver.find_element_by_class_name('w1I7fb')错误: selenium.common.
浏览 2
提问于2021-05-05
得票数 0
回答已采纳
3
回答
抛出按类查找
元素
的
错误,输入类型
python
、
selenium
、
selenium-webdriver
文本框
的
HTML代码如下:该条形图
的
CSS
如下所示,因此我还尝试输入数据-v-0401fc16,以便按类名获取
元素
。search = driver.find_element_by_class_name("search_in[data-v-0401fc1
浏览 18
提问于2022-05-04
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
在Selenium中进行网页元素定位的诸种方法
Jquery基础
程序员必须知道的css样式
千锋带你认识“jQuery”
你未必了解的JavaScript和CSS的相同套路!
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券