WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

WinAppDriver in Github actions yaml example

Open EdeBont opened this issue 2 years ago • 6 comments

Is there an yaml actions example file on how to use WinAppDriver in a Github CI/CD pipeline? Cannot get it running on the Github hosted runner, though it is pre installed.

EdeBont avatar May 30 '22 11:05 EdeBont

What is the error that you get?

anunay1 avatar May 30 '22 16:05 anunay1

What is the error that you get?

After adding the following to my yaml file it seems to activate winappdriver at least: # Run Winappdriver - name: Run Winappdriver run: Start-Process -FilePath "C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe"

Now this error message is generated: OpenQA.Selenium.WebDriverException : The system cannot find the file specified

So I'm still not sure I'm using winappdriver in the correct way in my workflow file. An example file would be great!

EdeBont avatar May 31 '22 06:05 EdeBont

@EdeBont Do you know what is WinAppDriver version is installed, is it x64? The latest WinAppDriver has an x64 version and it installs in another folder "C:\Program Files\Windows Application Driver\WinAppDriver.exe"

Shakevg avatar Jun 02 '22 20:06 Shakevg

@EdeBont Do you know what is WinAppDriver version is installed, is it x64? The latest WinAppDriver has an x64 version and it installs in another folder "C:\Program Files\Windows Application Driver\WinAppDriver.exe"

I am trying to use the pre installed winappdriver on the Github VM, I suppose it has the latest version installed. Do you have an example yaml file for me?

edit: Changed the path to the WinAppDriver.exe and that didn't work. Apparently the x64 version is not the one which is pre installed, so I reverted back to (x86).

EdeBont avatar Jun 03 '22 04:06 EdeBont

Per documentation it has WinAppDriver 1.2.2009.02003 https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#preinstalled-software

It is not simple to create such task. You can try to look on example here https://github.com/microsoft/WinAppDriver/issues/846 Something like: cmd start /K "C:/Program Files (x86)/Windows Application Driver/WinAppDriver.exe" 4723

Shakevg avatar Jun 14 '22 19:06 Shakevg

I also would love to see an example for github actions on how to test an .exe windows app using Winappdriver. Can't find any examples for github actions.

khapuhetti avatar Jun 28 '22 22:06 khapuhetti