Athos Posted July 9, 2012 Posted July 9, 2012 (edited) Hi guys, I have a question for how to hit a button that doesn't have a control id? I'm rewriting my test automation so that it can work from a locked workstation. The problem with that is that I click on a button that doesn't have any control id. >>>> Window <<<< Title: Erase Class: Dialog Position: 233, 307 Size: 229, 346 Style: 0x96CC0000 ExStyle: 0x00000100 Handle: 0x00080FC4 >>>> Control <<<< Class: Instance: ClassnameNN: Name: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: My question is what do I do in this situation? Does that button have no id or is it just hidden? Remember, I can't activate the window because I want it to work on a locked machine. Besides the ok button, there is also a cancel button with no control info either. Thanks, Edited July 9, 2012 by Athos
Athos Posted July 9, 2012 Author Posted July 9, 2012 I found a solution Turns out a I don't need a control id (My mistake was assuming it was a required field) I can just use the window title and press enter. ControlSend(WindowTitle, "","","{ENTER}")
JohnOne Posted July 9, 2012 Posted July 9, 2012 That's if the button has focus. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
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