Scroll down the text using Scroll Bar in Ranorex

Ask general questions here.
sunitha
Posts: 24
Joined: Thu May 14, 2009 2:06 pm

Scroll down the text using Scroll Bar in Ranorex

Post by sunitha » Thu Jun 04, 2009 8:34 am

How can i scroll the text which has scroll bar in the form.
I need to go to the end of the text clicking the scroll bar down arrow to the bottom.

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

Post by Support Team » Thu Jun 04, 2009 8:54 am

Just spy the scroll bar down arrow, add its element to your Ranorex repository and click it in your code.

Regards,
Alex
Ranorex Support Team

sunitha
Posts: 24
Joined: Thu May 14, 2009 2:06 pm

Scroll down the text using Scroll Bar in Ranorex

Post by sunitha » Thu Jun 04, 2009 10:00 am

My text box has scroll bar attached to it. When i use Spy to get the controlid of scroll it shows as TextArea Tag.
How to page down the text area using Scroll Bar down arrow in ranorex
[/img][/list][/url]

sunitha
Posts: 24
Joined: Thu May 14, 2009 2:06 pm

Scroll down the text using Scroll Bar in Ranorex

Post by sunitha » Fri Jun 05, 2009 12:23 pm

How can i scroll the text which has scroll bar in the form.
I need to go to the end of the text clicking the scroll bar down arrow to the bottom.

Can anybody who can reply to this???

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

Post by Support Team » Mon Jun 08, 2009 9:50 am

In the uncommon case that a scrollbar is not accessible through Ranorex, you need some kind of workaround. You can, for example, click into the text and use Ranorex' keyboard functionality to scroll down using the arrow keys. Or you can use relative coodinates inside the text to click on the scrollbar; this is the way the Ranorex Recorder clicks on elements if they are not directly accessible.

By the way, what kind of control is this you are trying to automate? Could you, please, send a snapshot of that control to support_at_ranorex.com, so we can check if we can do something to make the scrollbar accessible!

Regards,
Alex
Ranorex Support Team

sunitha
Posts: 24
Joined: Thu May 14, 2009 2:06 pm

Scroll down the text using Scroll Bar in Ranorex

Post by sunitha » Mon Jun 08, 2009 1:38 pm

Image

Have a look at my image which i attached to this Report.

Have a look at my text control with multiple lines and scroll bar to it. As the text box itself contains the scroll bar if there are multiple lines, i'm not able to capture the scroll bar alone.

When i point the Ranorex spy to the text control and scroll bar, it takes as a whole.
U can see the line border is what i got when i pointed the Ranorex Spy.

I need to click with mouse the scroll down arrow..Can you suggest me the solution for this.

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

Post by Support Team » Wed Jun 10, 2009 4:52 pm

Please, read my last post again. I wrote there that you could use the keyboard methods as a workaround. As an alternative if your control does not change its size, you can use relative coordinates inside the control to click on the scrollbar; the easiest way to achieve that is to record those actions using the Ranorex Recorder.

Regards,
Alex
Ranorex Support Team