Appium遇到問題:

來源:互聯網
上載者:User

標籤:invalid   activity   連接埠   each   注意   啟動   輸入   address   session   

問題一:
問題org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.

解決辦法:
(1)啟動appium
(2)運行cmd 輸入 adb devices -l 查看UDID
(3)再在cmd中輸入 appium -a 127.0.0.1 -p4723 -Uf4a4d8bb (-a表示ip,-p表示連接埠,-U表示裝置的udid 可以通過appium -h查看更多命令)
(4)如果如所示 就表示 appium服務啟動成功了,注意這個視窗不要關閉 因為這是appium的服務 關了就關了服務,後面過程無法執行,而且這個視窗也是 日誌輸出的視窗用於排錯。

問題二:
問題:org.openqa.selenium.SessionNotCreatedException: A new session could not be created.
(Original error: Device ZX1C622BU3 was not in the list of connected devices)
(WARNING: The server did not provide any stacktrace information)

解決辦法:可能手機驅動未安裝成功,雖然在adb devices中可以正常查看到devices


問題三:
問題:org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Waited 20 secs for selendroid server and it never showed up)

解決辦法:
查看包的簽名的和Activity
例如:APP從I5版本後啟動介面的capabilities.setCapability("appActivity", ".CordovaApp");
從I5版本後Acitivity變成了MainActivity
capabilities.setCapability("appActivity",".MainActivity");// 被測app的Activity類


問題四:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)

解決方案:
查看裝置上是否安裝Selendroid,或者升級Selendroid

IOS問題五:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)

解決辦法:IOS_webkit_debug_proxy –c –[Udid] -d

 

Appium遇到問題:

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.