swipe滑动方法报错
来源:1-4 让Appium跑起来

慕妹1262466
2019-07-22
报了这个错*[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null
在网上查了原因是修改 jar包的名字
但是还是不成功
python端报错是
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: The swipe did not complete successfully
我的代码是
from appium import webdriver
c = {
“platformName”: “Android”,
“deviceName”: “127.0.0.1:62001”,
“app”: “C:\Users\lingshi\Desktop\appium软件合集\mukewang.apk”,
}
driver = webdriver.Remote(“http://127.0.0.1:4723/wd/hub”, c)
driver.swipe(500, 400, 50, 400)
driver.swipe(500, 400, 50, 400, 2000)
锁定原因是
driver.swipe(500, 400, 50, 400, 2000)
这段代码报错
将他换为
import time
time.sleep(1)
driver.swipe(500, 400, 50, 400)
可以成功
1回答
-
Mushishi
2019-07-23
你去看swipe这个方法里面还有没有执行多久执行完这个参数
00
相似问题