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

Automation for app installation with UAC #2033

Open
Shreyanshkhemesara opened this issue Oct 6, 2024 · 2 comments
Open

Automation for app installation with UAC #2033

Shreyanshkhemesara opened this issue Oct 6, 2024 · 2 comments

Comments

@Shreyanshkhemesara
Copy link

I am trying to automate testing for an agent desktop service. Its first step is installing that agent service.
Following steps take place: 1. open MSI 2. click next 3. click i agree to terms and condition 4. click next 5. click next -> this prompts up with UAC window. I am able to automate things till here , but the click on UAC window is not happening.

  1. Tried to do click on elementByname("YesButton") / xml path
  2. Tried to send "left arrow key" and then "enter" ( to switch to "yes" from "no" on UAC and then enter to select "Yes")
    Neither of these things worked.

Is it possible to achieve this? If so, how?

@liljohnak
Copy link

@Shreyanshkhemesara UAC prompt automation is not possible. For this task, consider running your test with elevated privileges.

@HowTurnRight
Copy link

HowTurnRight commented Oct 10, 2024

You need to reduce your UAC settings to "Never notify" if you want to do any installations with scripts. Most of the installers offers silent installation with powershell, check your app.

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

3 participants