from selenium import webdriver driver = webdriver.Firefox() driver.get("some url") if "your text here" in driver.page_source: print('Found it!') else: print('Did not find it.')