--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
dd.findelement(By.tagname("h5")).getText();
I would go for:
String value = pp.findElement(By.xpath(“//div[@id=’one’]/h5”)).getText();
Or
String value = pp.findElement(By.xpath(“//div[@id=’two’]/h5”)).getText();
It should be more performant to base it upon an ID since they are unique (I really need to do some tests and get some numbers to validate this, I may just be making it up)