anusha80 Posted February 22, 2019 Posted February 22, 2019 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.
faustf Posted February 23, 2019 Posted February 23, 2019 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
anusha80 Posted February 25, 2019 Author Posted February 25, 2019 @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);
Earthshine Posted February 25, 2019 Posted February 25, 2019 (edited) did you look at what he posted to you? you may have to resort to using UIAutomation. Edited February 25, 2019 by Earthshine My resources are limited. You must ask the right questions
anusha80 Posted February 26, 2019 Author Posted February 26, 2019 @faustf, @Earthshine, I went through the article but couldn't find anything related to headless.Do you have any code snippet to handle this scenario?
TheDcoder Posted February 26, 2019 Posted February 26, 2019 Any GUI automation pretty much stops working in headless mode (both native AutoIt automation and UI Automation). Here is my related question at stackoverflow with a possible workaround for the situation: https://stackoverflow.com/q/43841450 EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion
BigDaddyO Posted February 26, 2019 Posted February 26, 2019 (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 February 26, 2019 by BigDaddyO can't
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now