Changes between Initial Version and Version 1 of webtest/question_2
- Timestamp:
- 10/29/2013 12:29:54 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
webtest/question_2
v1 v1 1 帖子页或版块页面内容较长,有时候,我们要操作的元素在滚动条的下面,需要拖动滚动条后,才能操作目标元素,selenium如何滚动无素呢? 2 [[BR]] 3 首先,从页面中找到目标元素,然后element.location_once_scrolled_into_view, 如下 4 {{{ 5 ...... 6 content = driver.find_element_by_id("content") 7 content.location_once_scrolled_into_view 8 }}}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)