2016-02-29 76 views
1

今天我更新了我的appium1.5一切除了mobile: scrollTo命令罚款运行。移动滚动命令,不appium 1.5工作的iOS应用

el = getattr(driver, 'find_element_by_' + locator_type)(locator_path) 
driver.execute_script("mobile: scrollTo", {"element": el.id}) 

这个代码不工作了,我得到一个错误:

WebDriverException: Message: Unknown command, all the mobile commands except scroll have been removed.

谁能帮助我?

回答

3

解决的问题

使用此代码Appium 1.5

driver.execute_script("mobile: scroll", {"direction": 'down', 'element': el})