【发布时间】:2017-05-10 09:47:26
【问题描述】:
我有一个 css-selector 读取
#block-a4e7-et-lists-a4e7-et-lists-content > div > div > div.row > div.col-md-9.col-sm-12.col-lg-9.col-xs-12 > div > div.a4e7-fw-pagination > div:nth-child(5)
在网页上
但即使经过长时间的努力,我也无法使用 selenium 访问它
driver.find_element_by_css_selector()python 中的函数。
你能帮我解决这个问题吗?
最好的 安达
【问题讨论】:
-
您只想使用 xpath 还是 css-selector?
-
您要访问的内容是什么。请描述性
-
请显示您的代码、预期响应和实际响应。
-
driver.find_element_by_css_selector()与提供的CSS选择器在分页时返回<div class="pg-loop">4</div>,即使没有等待。您可以分享异常日志或更多详细信息吗?
标签: python selenium css-selectors