【发布时间】:2020-06-06 14:24:35
【问题描述】:
我正在尝试在下一页上找到一个按钮 - https://www.dukascopy.com/swiss/english/marketwatch/sentiment/
The button I am trying to locate is the Liquidity providers button
我尝试在 driver.find_element_by_xpath(...) 中同时使用 xpath 和完整 xpath,但它似乎根本找不到按钮。我也尝试了所有其他 find_element 方法,但无济于事。
我在使用 Xpath 时遇到以下错误
raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id=":1"]"} (Session info: chrome=83.0.4103.97)
任何帮助将不胜感激。谢谢
【问题讨论】:
-
您好,您可以创建一个Minimal, Reproducible Example,这将有助于人们帮助您。
标签: python selenium web-scraping selenium-chromedriver