Jump to content

Recommended Posts

Posted

I am trying to click  "ok" in browser(chrome) notification to accept the certificate in headless mode .  How can I use AutoIT to handle this?

Its working perfectly fine in Desktop but  I want  to handle this in headless.

Posted

show some example with script , is much simple for our cominity , give you a help thankz again

and try to look this  , probably help  you

 

Posted

@faustf

 

Below is the code that I am using to handle the ok button(below image) in the desktop. How can I do it in headless in jenkins?

AutoItX.WinWaitActive("", "", 10);

AutoItX.MouseClick("left", 1005, 350, 1);

pic.png

Posted (edited)

did you look at what he posted to you? you may have to resort to using UIAutomation.

 

 

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Posted (edited)

you can't use a functions that states Active in a headless mode.  there is no desktop to interact with so no window will ever be "Active".

Try switching to WinExists() in a loop,  or WinWait()

Edited by BigDaddyO
can't

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...