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
Ranorex mouse click is causing window to scroll
-
- Posts: 13
- Joined: Thu Apr 15, 2010 4:34 pm
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Ranorex mouse click is causing window to scroll
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).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.
Regards,
Alex
Ranorex Support Team