Ok, so I did a GetPageContent(), printed the list, and got something that was close to what I expected.
Then I did a DoClick() on one of the objects on the page (which basically sorts a list of links in reverse) and this works fine too when I simulate the testcase.
Then I did GetPageContent() following the DoClick() and printed the list. Technically, it should return the same list as before except some objects will be in different order. But now I see only about 20 objects in the printed list (there were over a 100 before)
whats going on here?