【发布时间】:2015-03-06 08:31:36
【问题描述】:
我用下面的语句来滚动。
@driver.scroll_to_exact('Text').click
我收到以下错误
Selenium::WebDriver::Error::WebDriverError:unexpected response, code=404, content-type="text/plain"That URL did not map to a valid JSONWP resource
我尝试使用以下语句
b=find_element(:id,'com.dddd.main:id/calenderListView')
@driver.execute_script 'mobile: scrollTo', :element => b.ref`
我能够滚动到列表视图的末尾。但是滚动到列表视图的末尾后出现以下错误
Failure/Error: @driver.execute_script 'mobile: scrollTo', :element => b.ref
Selenium::WebDriver::Error::UnknownError:
Could not scroll element into view: null
# ./test.rb:68:in `block (2 levels) in <top (required)>'
【问题讨论】:
标签: android ruby selenium appium