Ranorex

Clicking on a control/element

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet
View previous topic :: View next topic  
Author Message
testMunky



Joined: 16 Jan 2008
Posts: 6
Location: Hants, UK

PostPosted: 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

Very Happy
Back to top
View user's profile Send private message Visit poster's website
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 256

PostPosted: 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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum