【发布时间】:2021-02-24 10:34:31
【问题描述】:
我正在尝试使用 scrollBy 函数滚动页面,但它不适用,因为我使用 XPath 查找元素(find_element_by_xpath("//div[@class='sc-bGbZqa carTxV']")Inspect in chrome with out adding Id . 但是,当我给 id(TEST) Inspect in Chrome 并尝试使用 id 的 scrollBy 函数时,在 chrome 中进行检查时,它工作正常。我使用的是 selenium python。非常感谢您的帮助。
谢谢。
【问题讨论】:
标签: selenium-webdriver xpath-2.0 js-scrollby