Possible Duplicate:
Getting all visible text from a webpage using Selenium
I would like to search for the occurrence of a particular string on a set of webpages. However, I don't care if this string occurs in the source code of the page. I only care whether this string occurs in such a way that a user would come across it if they were viewing the site. How can I get all the text on the page that might actually be visible in the browser? Something like the combination of the text
of every element on the page, probably.