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 an application as admin #1908

Open
IreneCoburn123 opened this issue Jun 19, 2023 · 1 comment
Open

How to start an application as admin #1908

IreneCoburn123 opened this issue Jun 19, 2023 · 1 comment

Comments

@IreneCoburn123
Copy link

IreneCoburn123 commented Jun 19, 2023

A Desktop application should be started with admin privileges. How to start it for testing with WinAppDriver?

AppiumOptions options = new AppiumOptions();
options.AddAdditionalCapability("app", UltreonAppId);
options.AddAdditionalCapability("deviceName", "WindowsPC");
options.AddAdditionalCapability("ms:experimental-webdriver", true);

WindowsDriver session = new(new Uri(WindowsApplicationDriverUrl), options);

@anunay1
Copy link

anunay1 commented Jun 20, 2023

If winappdriver.exe is started as admin the application starts as admin.

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