I wanted to search Selenium on google and wanted to display first 10 results from www.seleniumhq.org using Selenium RC
Below is my code:
int count = selenium.getXpathCount(
"xpath=//a[contains(@href,'www.seleniumhq.org')]"
).intValue();
I’m getting wrong count for this i.e. correct count should be 2 since there is only 2 links which contains www.seleniumhq.org:
- www.seleniumhq.org
- www.seleniumhq.org/download/
Please help