dsolis2
15 years agoOccasional Contributor
How to move up or down on web page
I'm testing a flex application. TC only sees objects that are visible on the screen. However, I have a page that when maximized to fit the screen only displays the upper portion of the page. To get to the rest of the content, I need to use the scrollbar to view the rest of the page. I have two questions.
1. Is there a method other than drag to move down the page to make the second half visible?
2. Once I'm on the bottom portion of the page, the objects take the same name as they did on top. For example, this particular page has many checkboxes. Imagine a questionare with 100 questions each with a checkbox next to it. The first 50 are visible in the object browser as CheckBox(9),CheckBox(8),CheckBox(7)... and so on. When I scroll down to the bottom 50, the checkboxes take on the same name as the one's on the top. At this point, the object browser see's the checkboxes on the bottom 50 as CheckBox(9),CheckBox(8),CheckBox(7)... The question is, once I get the bottom portion, how do I identify the objects different from the top. Obviously either on the top or bottom, I should be able to click on the checkbox regardless of the name. But my problem is that I will use a giant case structure to select a specific checkbox I want to test.
Select Case Checkbox
Case "1"
Page.CheckBox(9).click
Case "2"
Page.CheckBox(8).click
Case "3"
Page.CheckBox(7).click
End Select
The problem here is when I get to the bottom 50, the names will be the same. Any ideas?
1. Is there a method other than drag to move down the page to make the second half visible?
2. Once I'm on the bottom portion of the page, the objects take the same name as they did on top. For example, this particular page has many checkboxes. Imagine a questionare with 100 questions each with a checkbox next to it. The first 50 are visible in the object browser as CheckBox(9),CheckBox(8),CheckBox(7)... and so on. When I scroll down to the bottom 50, the checkboxes take on the same name as the one's on the top. At this point, the object browser see's the checkboxes on the bottom 50 as CheckBox(9),CheckBox(8),CheckBox(7)... The question is, once I get the bottom portion, how do I identify the objects different from the top. Obviously either on the top or bottom, I should be able to click on the checkbox regardless of the name. But my problem is that I will use a giant case structure to select a specific checkbox I want to test.
Select Case Checkbox
Case "1"
Page.CheckBox(9).click
Case "2"
Page.CheckBox(8).click
Case "3"
Page.CheckBox(7).click
End Select
The problem here is when I get to the bottom 50, the names will be the same. Any ideas?