| View previous topic :: View next topic |
| Author |
Message |
testMunky
Joined: 16 Jan 2008 Posts: 6 Location: Hants, UK
|
Posted: Wed Jan 30, 2008 6:53 pm Post subject: Clicking on a control/element |
|
Hi,
is there a way of 'clicking' a control or element without the use of the mouse?
I currently use the following:
Code: click into code to enlarge
Mouse.ClickElement(element, MouseButtonType.LeftButton); or
Mouse.ClickControl(control, MouseButtonType.LeftButton);
I can't find an alternative in the help, but its been a long day and i may have just missed it! hehe
sorry for being lazy
 |
|
| Back to top |
|
 |
Support Team Site Admin
Joined: 07 Jul 2006 Posts: 256
|
Posted: Thu Jan 31, 2008 11:42 am Post subject: |
|
If the control is a button, you can call Button.Click().
With an element Element.DoDefaultAction() should be the method you're searching for.
Regards,
Alex
Ranorex Support Team |
|
| Back to top |
|
 |
|