Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to start WinAppDriver as a non-admin user #1983

Open
aries-zhang opened this issue Mar 13, 2024 · 5 comments
Open

How to start WinAppDriver as a non-admin user #1983

aries-zhang opened this issue Mar 13, 2024 · 5 comments

Comments

@aries-zhang
Copy link

Hi team, quite opposite to this issue: #1908, in my use case, the app being tested does not work under elevated permissions, so it has to run as a non-admin user to properly function.

Is there a way to specify a runAs user in the WinAppDriver ADO task?

  - task: Windows Application Driver@0
    inputs:
      OperationType: Start
      AgentResolution: 1080p
@anunay1
Copy link

anunay1 commented Mar 13, 2024

By default it will run as a user. Unless you specify to run it as admin.

@anunay1
Copy link

anunay1 commented Mar 13, 2024

Is it azure ADO task? If yes then run the test agent as user and not admin.

@aries-zhang
Copy link
Author

aries-zhang commented Mar 13, 2024

Yes it is an ADO task which runs as a user with elevated permission. Is there a way to specify the test agent to run as user without customizing the image? Found this link but self-hosting is not an option due to compliance/security reasons for us.

image

@anunay1
Copy link

anunay1 commented Mar 13, 2024

I know for sure self hosted agent it's possible, not sure about MS hosted agent. You need to raise a support ticket with Microsoft.

@aries-zhang
Copy link
Author

Will do, thanks @anunay1 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants