Home  >  Article  >  Web Front-end  >  In selenium, how to make the scroll bar scroll to the height of the specified page element Link finishing_html/css_WEB-ITnose

In selenium, how to make the scroll bar scroll to the height of the specified page element Link finishing_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:50:201279browse

Selenium Tips - Control the scroll bar through js and locate the top div layer through xpath http://blog.csdn.net/iceryan/article/details/8162703

http:/ /zhidao.baidu.com/link?url=qmTzvAslFPlbigAGD42igMs-8NYG-x257mluxa15rafy1PyifYiCiS0w5vl6A33AUsRxJ-iJHFupSw6lVOH5v_

How to use Selenium webdriver to move horizontal scroll bar or jQuery vertical slider: http://codego .net/471554 /


js="var q=document.documentElement.scrollTop=500"
                                                                                     . execute_script(js)


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn