human
Selecting Element followed by text with Selenium WebDriver
assistant
Here is some code to selecting Element "//li/label/input" followed by text "polishpottery" with Selenium WebDriver `driver`

driver.find_element_by_xpath("//li/label/input[contains(..,'polishpottery')]")

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.