Forum Discussion

jimsmith_1's avatar
jimsmith_1
Contributor
13 years ago

VisibleOnScreen property always TRUE

I am trying to click a link in a list of regions in an asp.net web application.

The list of regions is too large to fit in the displayed window, so the user has to scroll down to find the correct region item to click.

I noticed in the TC Object Browser that the VisibleOnScreen property was TRUE for the regions that the user can see and FALSE for those that they cannot. So...I created a loop in my test that scrolls the list of region until the correct region has the VisibleOnScreen property set to TRUE.

This does not work because...

I have dicovered, by writing the property value to the log, that during test execution the region item's VisibleOnScreen property is always TRUE regardless of whether or not it can be seen on the screen.

Can anybody suggest why this might be?

Is there some other way I can check that I have scrolled down the list far enough to display a particular entry?



Thanks, Jim

19 Replies