Scroll resets before each action.

Ranorex Spy, Recorder, and Studio.
Joppen
Posts: 5
Joined: Wed Aug 18, 2010 7:18 am

Scroll resets before each action.

Post by Joppen » Tue Aug 31, 2010 6:33 am

Hi,

I have a modal dialog that contains a vertical scrollbar. Outside the area visible when dialog i loaded is an icon I want to click.

Ranorex tries to click the icon without scrolling and obviously fails. I record when I scroll and then click. The scrolling executes correctly in playback but when Ranorex executes the click the scroll reset and thereby making the icon that I want to click hidden again. Playback fails.

Any ideas?

/Joakim

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

Re: Scroll resets before each action.

Post by Support Team » Tue Aug 31, 2010 8:35 am

Is this a Windows Forms dialog? If so, are you using the latest Ranorex version 2.3.4? That version fixes the EnsureVisible behavior for Windows Forms scrollable container (see Ranorex 2.3.4 release notes).

If that does not fix the problem, try setting the "Use Ensure Visible" property of the repository items in that dialog to "false".

Regards,
Alex
Ranorex Team
.
Image

Joppen
Posts: 5
Joined: Wed Aug 18, 2010 7:18 am

Re: Scroll resets before each action.

Post by Joppen » Wed Sep 01, 2010 11:47 am

Hi,

Your solution using "Use Ensure Visible" worked great!

Thank you.

/Joakim