![](/img/trans.png)
[英]WebDriverIO connecting to Appium No matching capabilities found Error
[英]Session Error While Using WebdriverIO with Appium on Android Device
我克隆了 repo https://github.com/Schveitzer/webdriverio-appium-cucumber-boilerplate並嘗試運行測試。 我一直收到以下錯誤。
2022-06-16T22:51:13.157Z ERROR @wdio/runner: Error: Failed to create session.
Unable to connect to "http://localhost:4723/", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
腳步:
我做了一些改變。 但是,無法解決問題。 有什么建議可以解決這個問題嗎?
從錯誤來看,appium server 似乎沒有運行。 一個原因可能是 repo 包含舊版本的軟件包,而您可能安裝了最新版本的 appium。
您可以嘗試的一件事是從配置文件中刪除此行並嘗試以下操作。
appium
啟動 appium 服務器否則,您必須升級 repo 中的所有軟件包。 但這也意味着您可能必須更改代碼中的某些內容。
您的 appium 服務器可能沒有運行,從 package.json 我可以看到應該啟動它的 appium-service 丟失了。 你有兩個選擇:
appium -a 127.0.0.1 -p 4723
或啟動 appium 桌面應用程序
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.