Appium common error & Solutions

Server does not start

Error message:
urllib.error.URLError: <urlopen error [WinError 10061] Because the target machine actively refused, unable to connect.
[Solutions]
Click Start Appium button, [Appium] Welcome to Appium v1.16.0 prompt before running the script

Session conflict

Error message:
error: Failed to Start AN Appium the session, ERR WAS: Error: Requested A new new the session But One WAS in Progress
error analysis:
Before the session is not closed, and then you run a test case you have not set cover.
Solution :
re stop appium service, open Appium service in AdVance interface check Allow Session Override option to restart Appium end of the test in AfterClass plus driver.quit ()

Not installed java environment

错误信息:
selenium.common.exceptions.WebDriverException: Message: A new session could not be created. (Original error: ‘java -version’ failed. Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c “java -version”

Device is not connected

错误信息:
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not find a connected Android device.

Guess you like

Origin blog.csdn.net/Mwyldnje2003/article/details/103968939