报了这个错*[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)
可以成功