腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(1194)
视频
沙龙
1
回答
Python
Selenium
get_attribute
未
返回值
、
我正在尝试从下面的html中提取data-message-id。我最初的目标是提取包含特定文本的跨度的data-message- id,然后单击star_button将其标为星号。 <div class="message_content_header_left"> <a href="/team/krishnag0902" target="/team/krishnag0902
浏览 5
提问于2017-06-20
得票数 1
2
回答
Python
Selenium
获取“li”文本
、
、
使用
Python
,我试图从li类中提取信息。下面是我尝试过的代码,但是我得到了一个错误:
selenium
.common.exceptions.NoSuchElementException: Message: no such element: Unable
浏览 6
提问于2021-11-29
得票数 1
回答已采纳
1
回答
自定义关键词机器人框架
selenium
webdriver "object没有属性'
get_attribute
‘“
、
、
、
、
我试图使用
python
中现有的Seleniumlibrary来编写自定义函数,以便从元素中获得链接。但我在
get_attribute
上一直有个问题。错误:“列表”对象没有属性“
get_attribute
” from
selenium
import webdriver links = lib.find_e
浏览 3
提问于2020-03-25
得票数 2
回答已采纳
1
回答
需要
Selenium
返回给定HTML的类标题内容
、
使用
Selenium
执行一些some抓取。让它登录到一个站点,在该站点中,一次返回一个包含五个值的HTML数据表。我有无数的
get_attribute
、find_elements_by_class_name等变体。例如: pnum = prtnames.get_attribute("title") print('pnum') 下面是其中一个
返回值
的HTML: <div显然
Selenium
没有"find_elements_b
浏览 16
提问于2019-06-21
得票数 0
回答已采纳
3
回答
使用
Python
从下拉列表中
返回值
、
、
、
我想返回已经选择的值,并将其赋给一个
Python
变量。我得到了错误:TypeError:
get_attribute
() takes exactly 2 arguments (1 given)<select id="TimeZone" namevalue="Central">Central Time</option> <option value="Mountain">Mountain Time</option>
浏览 2
提问于2014-08-01
得票数 1
1
回答
等到元素处于活动状态时,
selenium
、
使用
Selenium
2,我面临以下问题:find_element_by_link_text("Archive")find_element_by_link_text("Archive") (没有其他link_text)有class
浏览 3
提问于2013-09-07
得票数 2
回答已采纳
2
回答
selenium
unicode编码错误
、
print driver.find_element_by_tag_name('body').
get_attribute
('innerHTML')我在PHP中调用
python
脚本,如下所示exec('
python
sel
浏览 0
提问于2016-02-17
得票数 0
2
回答
python
-在带有
selenium
的页面上查找电子邮件地址
、
、
",第34行,查找(驱动程序)文件"scrape.py",第26行,查找emailAdress = "/usr/local/lib/
python
2.7/site-packages/
selenium
/webdriver/remote/webdriver.py",emailAdress,第293行,在"/usr/local/lib/
python
2.7
浏览 3
提问于2017-02-12
得票数 2
回答已采纳
2
回答
在
python
中使用
selenium
?
、
、
、
from
selenium
import webdriverimport timedriver = webdriver.Chrome(pathsmscTopCon
浏览 52
提问于2020-06-27
得票数 0
回答已采纳
1
回答
如何在
python
上使用seleinum获取页面中的属性?
、
、
我正在尝试获取一个页面的元素源的内容 from
selenium
import web driver firefox.get('somelink right here') linkimg = firefox.find_elements_by_xpath('/html/body/div[3]/div/div/img').
get_attribute
('src') 但是当我运行这段代码
浏览 25
提问于2021-08-17
得票数 0
回答已采纳
3
回答
如何从
Selenium
中获取元素的属性?
、
、
、
、
我正在使用
Python
中的
Selenium
。我想要获取<select>元素的.val(),并检查它是否是我所期望的。
Selenium
文档似乎有很多关于选择元素的内容,但没有关于属性的内容。
浏览 1
提问于2015-05-19
得票数 113
回答已采纳
2
回答
无法使用xpath从dom获取元素
、
、
? 无法使用xpath从dom获取元素 <input bsdatepicker="" class="form-control font-size-normal ng-untouched ng-pristine ng-valid" id="endDate" name="endDate" placement="top" type="text"> 元素值在html代码中不可用上述元素的UI包含以下值"01/14/2019“,但无法获取这些值。 甚至尝试使用Ctrl+F在整个d
浏览 47
提问于2019-10-11
得票数 0
回答已采纳
2
回答
Selenium
WebElement中的“属性”和“属性”有什么区别?
Selenium
WebElement有两个方法,在
Python
中,它们是'
get_attribute
‘和'get_property’。这些文件对我来说非常简单和不清楚。 它们在地球上有什么区别?
浏览 3
提问于2017-04-26
得票数 19
回答已采纳
1
回答
从href标记
selenium
webscraper中提取html。
、
、
Back Bay" data-class-type="Cycle" data-class-time="2019-11-21 17:30:00" tabindex="0">reserve</a>from
selenium
import webdriver len
浏览 0
提问于2019-11-18
得票数 1
回答已采纳
2
回答
使用xpath从html页面提取链接
、
、
、
我正在尝试提取此html页面上的链接: <div class="mainbox" onclick="www.abc.com">//div[@class="listbox"]/a/text()但它们返回一个空列表。
浏览 1
提问于2015-10-06
得票数 0
1
回答
如何使用从HTML打印更多链接?
、
、
、
、
Html:<a href="ooooo.pdf"></a>
Python
selenium
代码试用版:from
selenium
.webdriver.common.by import By from
selenium
.webdriver
浏览 10
提问于2022-04-20
得票数 1
回答已采纳
3
回答
Selenium
'WebElement‘对象没有属性'
Get_Attribute
’
、
、
、
我在
Python
中使用
Selenium
(chrome),我试图从网页上的所有链接中获取href。print items href = item.Get_Attribute('href')它成功地获得了所有链接,但在
get_attribute
上我得到了一个错误: 虽然我到处都看过,但它似乎应该能用。
浏览 4
提问于2016-04-07
得票数 21
回答已采纳
1
回答
您好,我正在使用
python
中的
selenium
进行实验。
、
、
、
嗨,我正在用
python
做硒的实验,我基本上想要加载这个网站。https://www.jdsports.co.uk/c/footwear/?max=72并获得每种产品的名称和价格。,现在它会加载进去,然后我每次都会遇到这个错误 Exception in Tkinter callback File "E:\
Python
in scrape print(products.get_attribute('text
浏览 16
提问于2021-02-25
得票数 1
回答已采纳
2
回答
如何使用
Selenium
和Xpath在超链接之前和之后获取文本
、
、
、
、
我正在试图找到使用Xpath/
Selenium
的情况,在超链接之前没有空白。
浏览 8
提问于2022-05-03
得票数 0
2
回答
如何使用
Selenium
wihout打开Chrome浏览器获取数据?
、
、
、
、
", line 8, in <module> File "C:\Users\musta\AppData\Local\Programs\
Python
\
Python
37\lib\site-packages\
selenium
\
Python
浏览 5
提问于2021-06-29
得票数 1
回答已采纳
点击加载更多
相关
资讯
Python不接收返回值
python基础之 and or not的返回值
python snippet:monoGO,selenium
python selenium环境搭建
Selenium+Python附件上传
热门
标签
更多标签
云服务器
ICP备案
对象存储
云直播
实时音视频
活动推荐
运营活动
广告
关闭
领券