pushButton
Posted: Wed Jul 18, 2007 9:53 pm
Well I have accomplished a lot so far with automating the GUI testing at my work... I'm happy with Ranorex and I plan on writing a proposal for a license..
Anyways I have a question regarding pushbutton. So far I have tried to write the code myself with no success then I tried to use RanorexRecorder to record the process of selecting okay from a child dialog box that apprears.
// Find child element by Role=PushButton Name=OK ClassName=Button
element = formElement.FindChild(Role.PushButton, "OK", "Button");
Mouse.ClickControl(control, MouseButtonType.LeftButton, new Point(47, 12), 1, 953);
What happens is the cursur goes right past the dialog box and I get an error message.
It throws a commandfailed exception.
Anyways I have a question regarding pushbutton. So far I have tried to write the code myself with no success then I tried to use RanorexRecorder to record the process of selecting okay from a child dialog box that apprears.
// Find child element by Role=PushButton Name=OK ClassName=Button
element = formElement.FindChild(Role.PushButton, "OK", "Button");
Mouse.ClickControl(control, MouseButtonType.LeftButton, new Point(47, 12), 1, 953);
What happens is the cursur goes right past the dialog box and I get an error message.
It throws a commandfailed exception.