【问题标题】:Scroll to the element on web page滚动到网页上的元素
【发布时间】:2013-05-02 00:08:58
【问题描述】:

我正在使用 Python Selenium Webdriver 自动化测试脚本。

我在网页上有按钮,但它们在默认窗口中不可见。我们必须滚动网页。

您能否建议实现这一目标的方法?

我尝试过ActionChain,但是执行悬停操作后,我仍然无法点击正确的元素。

【问题讨论】:

    标签: selenium python-2.7 automated-tests


    【解决方案1】:

    你试过了吗?

    find_element_by_css_selector(".your_button_class");
    

    【讨论】:

      猜你喜欢
      • 2015-02-26
      • 1970-01-01
      • 2013-07-17
      • 1970-01-01
      • 2020-07-19
      • 1970-01-01
      • 2014-08-12
      • 1970-01-01
      相关资源
      最近更新 更多