I found the following XPath expression using FirePath and Firebug:
//div[@class='itudeBox floatDiv']/div[1]/div/text()[2]
This returns the correct value in Selenium.
But when I try the same in Eclipse → TestNG:
selenium.getAttribute("xpath=//div[@class='itudeBox floatDiv']/div[1]/div/text()[2]");
It shows an error "Element not found".
How can I fix this?
AD - Advice – user1254309 Mar 09 '12 at 13:04