slyx Posted July 1, 2016 Posted July 1, 2016 (edited) Cool. It works. I add a 10-second sleep. Edited March 12, 2019 by slyx
MichaelHB Posted July 1, 2016 Posted July 1, 2016 23 minutes ago, slyx said: I add a 10-second sleep One seconde right? Not ten. Why do you need to focus the element? (threre is not need to focus to click it, if its the case)
slyx Posted July 1, 2016 Posted July 1, 2016 (edited) Yes, it's one second. I like to get the element shown in the screen by focusing it. Why this popup is not a window? Any details? When I try WinList(), I can get two HWND handles. Edited July 1, 2016 by slyx
MichaelHB Posted July 1, 2016 Posted July 1, 2016 Its not a popup, just looks like one, this is made by a java code that check is the zip code is different, if it is then it makes that div element that looks like a alert popup. So you can not get two window handlers from that event, its something else that you are mistaking by a alert window. To see the difference, write this code in the address bar: javascript:alert("test"); Then use the AutoIt Window Info on both occurences (the alert popup ge and the element that looks like one).
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