Ranorex mouse click is causing window to scroll

Class library usage, coding and language questions.
markvanraalte
Posts: 13
Joined: Thu Apr 15, 2010 4:34 pm

Ranorex mouse click is causing window to scroll

Post by markvanraalte » Mon Apr 26, 2010 5:40 pm

Hi,

I have a web (java) application.
When I try to program mouse click on a particular control in a dialog box, Ranorex actually moves the window - in fact it scrolls the whole web window partly out of view and fails to click in the desired location.

I even did this using the Ranaorex recorder and on replay it gave the same result. (scrolled the window instead of clicking).
My code has only one statement (executes the ".click()" of the control I wish to click on.

Is this a bug? Please help.

Thanks
Mark

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Ranorex mouse click is causing window to scroll

Post by Support Team » Mon Apr 26, 2010 9:13 pm

markvanraalte wrote:When I try to program mouse click on a particular control in a dialog box, Ranorex actually moves the window - in fact it scrolls the whole web window partly out of view and fails to click in the desired location.
I guess you mean that Ranorex scrolls the application inside the web site out of view before performing the click, right? Ranorex tries to make an element visible before clicking it, e.g. by scrolling it into view. With web sites this can have an undesired effect though if the element is larger than the visible web site. Try setting the "Use Ensure Visible" property of the corresponding repository item or adapter to "false" (see the User Guide for more info on repository items or the API Documentation of the UseEnsureVisible property).

Regards,
Alex
Ranorex Support Team
.
Image