【发布时间】:2020-10-30 15:04:40
【问题描述】:
如何在https://yandex.ru/ 的提示表中找到 CSS 选择器?
搜索带下划线的 CSS 不起作用 (.mini-suggest__popup.mini-suggest__popup_svg_yes.mini-suggest__popup_theme_flat.mini-suggest__popup_visible)
browser.implicitly_wait(5)
try:
suggest = browser.find_element_by_css_selector('.mini-suggest__popup.mini-suggest__popup_svg_yes.mini-suggest__popup_theme_flat.mini-suggest__popup_visible`')
except NoSuchElementException:
print('no table with hints')
【问题讨论】:
标签: python selenium selenium-webdriver css-selectors