【发布时间】:2018-09-04 06:59:09
【问题描述】:
我正在测试 Android 应用程序并且需要滚动文本。我已经尝试了在这里和互联网上找到的所有东西,但没有任何效果。
Appium v1.4.1(服务器 v1.7.2) Python 3.x 使用 selenium 网络驱动程序
我需要滚动到页面底部,而不是特定元素
最接近的是
self.driver.execute_script("mobile: scroll", {"direction": "up"})
但它不起作用 . 日志是: selenium.common.exceptions.WebDriverException:消息:未知的移动命令“滚动”。仅支持 shell 命令。
谢谢
【问题讨论】:
-
self.driver.execute_script("mobile: scroll", {"direction": "up"}) 这似乎是我最需要的
标签: android python-3.x selenium-webdriver appium appium-android