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

Ask general questions here.
bradleyrose
Posts: 1
Joined: Sat Aug 24, 2019 7:18 pm

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

Post by bradleyrose » Sat Aug 24, 2019 7:19 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);

User avatar
qwertzu
Posts: 284
Joined: Wed Jan 25, 2017 11:08 am

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

Post by qwertzu » Tue Aug 27, 2019 9:28 am

hi,

can you upload a Ranorex Snapshot of the button and tell us what RanoreXPath you use for accessing this button?

regards, qwertzu