appium / appium-windows-driver

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

Do i need to install WindowsAppDriver ? #153

Open rmarinho opened 1 year ago

rmarinho commented 1 year ago

I was following the documentation here:

https://appium.io/docs/en/drivers/windows/index.html

But when i try to run a test i get that WAP is not found, shouldn't it be installed by the appium-windows-driver ?

debug] [Appium] Requiring driver at C:\Users\Rui Marinho\.appium\node_modules\appium-windows-driver
[AppiumDriver@9f90] Appium v2.0.0-beta.48 creating new WindowsDriver (v2.2.2) session
[AppiumDriver@9f90] Checking BaseDriver versions for Appium and WindowsDriver
[AppiumDriver@9f90] Appium's BaseDriver version is 9.1.0
[AppiumDriver@9f90] WindowsDriver's BaseDriver version is 9.1.0
[debug] [WindowsDriver@2df9] Creating session with W3C capabilities: {
[debug] [WindowsDriver@2df9]   "alwaysMatch": {
[debug] [WindowsDriver@2df9]     "platformName": "Windows",
[debug] [WindowsDriver@2df9]     "appium:app": "D:\\repos\\dotnet\\maui\\src\\Controls\\samples\\Controls.Sample.Sandbox\\bin\\Debug\\net7.0-windows10.0.19041\\win10-x64\\Maui.Controls.Sample.Sandbox.exe",
[debug] [WindowsDriver@2df9]     "appium:automationName": "Windows",
[debug] [WindowsDriver@2df9]     "appium:deviceName": "WindowsPC",
[debug] [WindowsDriver@2df9]     "appium:reportDirectory": "reports",
[debug] [WindowsDriver@2df9]     "appium:reportFormat": "xml",
[debug] [WindowsDriver@2df9]     "appium:fullReset": "false"
[debug] [WindowsDriver@2df9]   },
[debug] [WindowsDriver@2df9]   "firstMatch": [
[debug] [WindowsDriver@2df9]     {}
[debug] [WindowsDriver@2df9]   ]
[debug] [WindowsDriver@2df9] }
[WindowsDriver@2df9] Capability 'fullReset' changed from string to boolean. This may cause unexpected behavior
[WindowsDriver@2df9] The following capabilities were provided, but are not recognized by Appium:
[WindowsDriver@2df9]   reportDirectory
[WindowsDriver@2df9]   reportFormat
[WindowsDriver@2df9 (5b7c5ab0)] Session created with session id: 5b7c5ab0-af40-4ada-a53e-29e2da8584d6
[debug] [WinAppDriver] Did not detect WAD executable at any of the default install locations
[debug] [WinAppDriver] Checking the system registry for the corresponding MSI entry
[debug] [WinAppDriver] No WAD MSI entries have been found
[debug] [WindowsDriver@2df9 (5b7c5ab0)] Deleting WinAppDriver session
mykola-mokhnach commented 1 year ago

it depends on the NPM config. Autoinstall might be skipped if it is configured to not run postinstall steps. You could still download and install the necessary version of WinAppDriver setup manually.

naeemakram commented 1 year ago

You will need to download and install WinAppDriver.