I may just be confused by the change from Selenium to WebDriver and their respective documentation. In a section about test design in the documentation there is talk of usin
from selenium import webdriver
driver = webdriver.Firefox()
driver.get('http://www.testing.com')
element = driver.find_element_by_xpath('xpath of the element').text
assert element == 'Sample Text'
driver.quit()