Appium encountered a problem:

Source: Internet
Author: User

Question one:
Problem Org.openqa.selenium.remote.UnreachableBrowserException:Could not start a new session. Possible causes is invalid address of the remote server or browser start-up failure.

Workaround:
(1) Start Appium
(2) Run cmd input adb devices-l view Udid
(3) then enter Appium-a 127.0.0.1-p4723-uf4a4d8bb in cmd (-a means that the ip,-p represents the port,-u means that the udid of the device can view more commands by Appium-h)
(4) If the Appium service has been successfully started as shown, note that this window is not closed because the service is closed by Appium service, the subsequent process cannot be executed, and this window is also the Log Output window for troubleshooting.

Question two:
Issue: Org.openqa.selenium.sessionnotcreatedexception:a new session could not be created.
(Original Error:device Zx1c622bu3 is not in the list of connected devices)
(warning:the server did not provide any stacktrace information)

WORKAROUND: The phone driver may not be installed successfully, although in ADB devices you can view the devices in a normal way


Question three:
Issue: Org.openqa.selenium.sessionnotcreatedexception:a new session could not be created. (Original error:waited secs for selendroid servers and it never showed up)

Workaround:
View the signature and activity of a package
For example: The app launches the interface from the I5 version after the capabilities.setcapability ("Appactivity", ". Cordovaapp ");
Acitivity became mainactivity after the I5 version.
Capabilities.setcapability ("Appactivity", ". Mainactivity ");//The Activity class of the app being tested


Question four:
Org.openqa.selenium.WebDriverException:An Unknown server-side error occurred while processing the command. (warning:the server did not provide any stacktrace information)

Workaround:
Check to see if Selendroid is installed on the device, or upgrade selendroid

iOS Issue five:
Org.openqa.selenium.WebDriverException:An Unknown server-side error occurred while processing the command. (warning:the server did not provide any stacktrace information)

WORKAROUND: Ios_webkit_debug_proxy–c–[udid]-D

Appium encountered a problem:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.