我想在远程 Windows 10 计算机上运行测试。 机器已安装 Chrome。
我在那台机器上的一个简单的 npm 包中安装了 Appium 和 chromium 驱动程序。
package.json
{
"dependencies": {
"appium": "^2.5.1",
"appium-chromium-driver": "^1.3.20"
},
"scripts": {
"start": "appium --allow-cors"
}
}
然后我像这样启动Appium:
npm 运行开始
我使用 Appium Inspector 在本地测试服务器 (https://inspector.appiumpro.com/):
Remote Host: 127.0.0.1
Remote Port: 4723
Remote Path: /
{
"platformName": "Windows",
"browserName": "chrome",
"appium:automationName": "Chromium"
}
当我点击
Start Session
时,我收到此错误:
Failed to create session. An unknown server-side error occurred while processing the command. Original error: A new session could not be created. Details: session not created: No matching capabilities found
我不知道该怎么办。
大多数资源、博客文章和问题都涉及过时的 Appium V1。
我做错了什么? 尝试这样做是不是很奇怪?