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

WBOY
Release: 2016-06-24 11:50:20
Original
1277 people have browsed it

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)


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!