How find scrollbar associated with web page selecttag?

Class library usage, coding and language questions.
lyn5000
Posts: 50
Joined: Mon Feb 13, 2012 5:52 pm

How find scrollbar associated with web page selecttag?

Post by lyn5000 » Wed May 30, 2012 6:34 pm

After doing a .Click() on a Ranorex.SelectTag on a web page, how do I find the Ranorex.ScrollBar? I tried clicking the select tag in IE and then did Host.Local.Find<ScrollBar>("//scrollbar[@accessiblename='Vertical']") but none of the scrollbars found were the one that appeared after clicking the select tag.
Also, even if it is found, how do I know it's the one that is associated with the select tag I just clicked?

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

Re: How find scrollbar associated with web page selecttag?

Post by Support Team » Thu May 31, 2012 9:59 am

Hi,

Ranorex does not support scroll-bars in browser windows directly because they are owner drawn. For scrolling somewhere specific, please use EnsureVisible() on the element you want to scroll to.

Kind Regards
Bernhard
Ranorex Support Team
.
Image