appium / appium-windows-driver

Appium's interface to WindowsAppDriver provided by Microsoft
Apache License 2.0
131 stars 35 forks source link

Error installing appium windows driver #152

Closed rmarinho closed 1 year ago

rmarinho commented 1 year ago

I have appium 2.0 and trying to install windows driver i get a error saying it doesn't exist..

PS C:\Users\Rui Marinho> appium --version
2.0.0-beta.48
PS C:\Users\Rui Marinho> appium driver install windows
Error: ✖ Could not resolve driver; are you sure it's in the list of supported drivers? ["uiautomator2","xcuitest","mac2","espresso","safari","gecko","chromium"]
mykola-mokhnach commented 1 year ago

There were some changes made in the recent server version. The actual command is: appium driver install --package=appium-windows-driver windows (also updated the documentation)

rmarinho commented 1 year ago

Hum, still doesn't work for me..

PS C:\Users\Rui Marinho> appium driver install --package=appium-windows-driver windows
Error: ✖ Could not resolve driver; are you sure it's in the list of supported drivers? ["uiautomator2","xcuitest","mac2","espresso","safari","gecko","chromium"]
PS C:\Users\Rui Marinho> appium driver list
✔ Listing available drivers
- uiautomator2@2.12.1 [installed (NPM)]
- xcuitest [not installed]
- mac2 [not installed]
- espresso [not installed]
- safari [not installed]
- gecko [not installed]
- chromium [not installed]
rmarinho commented 1 year ago

this worked but is not listed on the drivers..

PS C:\Users\Rui Marinho> npm install appium-windows-driver

added 981 packages, and audited 982 packages in 2m

49 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
rmarinho commented 1 year ago
PS C:\Users\Rui Marinho> appium driver list
✔ Listing available drivers
- uiautomator2@2.12.1 [installed (NPM)]
- xcuitest [not installed]
- mac2 [not installed]
- espresso [not installed]
- safari [not installed]
- gecko [not installed]
- chromium [not installed]
mykola-mokhnach commented 1 year ago

How about appium driver install --source=npm appium-windows-driver ?

rmarinho commented 1 year ago

Yap that worked, thanks!

PS C:\Users\Rui Marinho> appium driver install --source=npm appium-windows-driver
✔ Installing 'appium-windows-driver'
ℹ Driver windows@2.2.2 successfully installed
- automationName: Windows
- platformNames: ["Windows"]
PS C:\Users\Rui Marinho> appium driver list
✔ Listing available drivers
- uiautomator2@2.12.1 [installed (NPM)]
- windows@2.2.2 [installed (NPM)]