WinAppDriver Task in Azure Pipeline set resolution option doesn't work on Windows 10
My Azure Pipeline agent is running on a Win10 machine. If I add a task to Start WinAppDriver and set resolution I get an error:
The term 'Set-DisplayResolution' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
It seems like powershell 'Set-DisplayResolution' command is only available on Windows Server. The issue is obviously not fixable within this project, but I feel like there should be some kind of note about "Select System Resolution on Agent" not being available in some circumstances.
If you change the resolution to default it works. It must only run this command if you specify a resolution
I am also facing this issue (I am also using windows10 machine). When we set it to default, my scripts are getting failed as elements are not visible properly with default resolution. Any other solution to increase resolution?
Error Message : "The term 'Set-DisplayResolution' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
@hassanuz can you please look into this issue ? This issue blocked us to continue with WinAppDriver automation.
Finally, I am able to increase screen resolution by using azure task "Screen Resolution Utility". All my UI tests are getting executed through CI/CD successfully.
Add this task before you start executing your UI scripts.
Here is the link "https://marketplace.visualstudio.com/items?itemName=ms-autotest.screen-resolution-utility-task".
@ncksol you may try this.