08-31-2009, 12:04 AM
I did not get the expected result even after using numautomationchildren. I also tried recording the scroll and getting the number of rows. But it still gives me less number of rows than there are actually in the grid. Here is the code:
Code:
with Browser("browser").FlexApplication("portal").FlexContainer("container").FlexBox("box").FlexBox("innerbox").FlexDataGrid("grid")
Dim rows, totalrows
rows = .GetROProperty("rowcount")
totalrows = .GetROProperty("NumAutomationChildren")
.Scroll 16,flexScrollVertical,flexThumbPosition
rows = .GetROProperty("rowcount")
totalrows = .GetROProperty("NumAutomationChildren")
End With