WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

WinAppDriver Task in Azure Pipeline set resolution option doesn't work on Windows 10

Open ncksol opened this issue 7 years ago • 4 comments

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.

ncksol avatar Jul 04 '19 13:07 ncksol

If you change the resolution to default it works. It must only run this command if you specify a resolution

JKennedy24 avatar Aug 07 '19 12:08 JKennedy24

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."

VijayHugar avatar Dec 19 '19 07:12 VijayHugar

@hassanuz can you please look into this issue ? This issue blocked us to continue with WinAppDriver automation.

VijayHugar avatar Dec 19 '19 07:12 VijayHugar

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.

VijayHugar avatar Dec 31 '19 10:12 VijayHugar