获取 WebDriverException:消息:在 iOS 真实设备上使用滚动或滑动关键字(Appium 库)执行脚本时出现未处理的端点
我使用 Robot Framework 和 Appium Library 来测试真实设备上本机 iOS 应用程序的脚本。
我需要向下(或向上)滚动到屏幕上某些在视图中不可见的元素,但是当我使用关键字滚动、向下滚动、向上滚动以及适当的元素定位器时,或滑动和按百分比滑动,执行脚本时出现相同的错误:
WebDriverException:消息:未处理的端点:/session/[SESSION ID]/execute -- http://[IP]:8100/ 带参数 { 通配符 = ( “会话/[会话 ID]/执行” ); }
我尝试使用 javascript,但没有成功,即出现相同的错误:
Execute Script driver.execute('mobile: scroll', {direction: 'down'});
有谁知道导致此问题的原因以及如何解决它?
I'm using Robot Framework with Appium Library for test scripts for native iOS application on Real Device.
I need to scroll down (or up) to certain elements on the screen that aren't visible into view, but when I'm using the keywords scroll, scroll down, scroll up with appropriate element locators, or swipe and swipe by percent, I'm getting the same error when executing the script:
WebDriverException: Message: Unhandled endpoint: /session/[SESSION
ID]/execute -- http://[IP]:8100/ with parameters {
wildcards = (
"session/[SESSION ID]/execute"
); }
Additionally I tried by using javascript, but without success i.e. the same error appears:
Execute Script driver.execute('mobile: scroll', {direction: 'down'});
Does anyone have an idea what causes this problem and how to solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以尝试这个功能:
这对我来说可以处理iOS应用程序的滑动:
我使用的是appium 1.21.0
You can try this function:
This work for me handle swipe for iOS application:
I'm using appium 1.21.0