Here is an example for Python.
function:
def is_text_present (self, string):
if str(string) in self.driver.page_source: return True
else: return False
Here is the guide to install and using Selenium Webdriver and Python on Ubuntu Linux 11.04.
OS: Ubuntu 11.04
1. Verify version of Java is greater than version 1.5, use command:-
$ java –version
If java needs to be installed, use the following command:-
$ sudo apt-get install sun-java6-jre