1

I am using winAppDriver to test UWP app but tests fail when screen is locked as it's not able to find the element and works ok when screen is not locked. Any solution to run winAppTest even screen is locked? I am worried about how I am gonna with TFS :(. Please advice.

Regards, Ref

Ref
  • 27
  • 1
  • 8

1 Answers1

1

Unlocking the machine is mandatory, the UI testing frameworks like WinAppDriver(and it's predecessor CodedUI) need an active UI session in order to automate the UI.

The requirement is document on this link. I'm sharing the screenshot below FYI. I hope this helps.

enter image description here

Naeem A. Malik
  • 995
  • 4
  • 19
  • you are right. I have found this fact as well and planned to run my tests in TFS or locally by putting power point presentation running in the background so screen doesnt get locked. – Ref Jan 29 '20 at 10:27
  • The TFS builds have a default timeout of 30 minutes, the build will fail by default when time goes beyond that. If you found the answer to be useful please click the up arrow. :) – Naeem A. Malik Jan 29 '20 at 11:26