button elemetn found but mouse.moveto(element) doesnt work

Ask general questions here.
din2dino
Posts: 12
Joined: Wed Nov 05, 2008 6:50 pm

button elemetn found but mouse.moveto(element) doesnt work

Post by din2dino » Wed Nov 26, 2008 6:07 pm

Hi ,

I have a button, which i retrieved on name as element, element is retirived, not null and when i call mouse.move to(element) it doesnt go to it location but some where else. I dont have any other control by the same name. Location is not empty either.

This is my code.
Ranorex.Element button = form.Element.FindChild(Role.PushButton,"ButtonString");

Mouse.MoveToElement(button);
Mouse.Click(MouseButtonType.LeftButton);


What could be wrong..

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Thu Nov 27, 2008 10:03 am

What kind of application do you automate?
Have you tried searching and clicking the corresponding control?

Regards,
Alex
Ranorex Support Team