Use selenium to find size of [li] list
I'm new to selenium and html, so forgive me if I ask something silly.
I'm using perl. There's a list of links on a sidebar. I have a list of links that should be present in this list once it's entirely expanded. Expanding was easy, i just did while elemnt is present link=[+], then click. I need to see if there are any extra that shouldn't be there. I'm not too sure how to do this. My plan was to compare the size of the list to what开发者_如何学C I expect it to be, but I'm not sure how to do this either.
Is there a simple way to do that, or perhaps a different way that also works?
Here is workaround http://www.eviltester.com/index.php/2010/03/13/a-simple-getcsscount-helper-method-for-use-with-selenium-rc/
精彩评论