Page 1 of 1

Clicking on a control/element

Posted: Wed Jan 30, 2008 5:53 pm
by testMunky
Hi,

is there a way of 'clicking' a control or element without the use of the mouse?

I currently use the following:

Code: Select all

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

:D

Posted: Thu Jan 31, 2008 10:42 am
by Support Team
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