Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get span text selenium python

from selenium import webdriver
browser = webdriver.Firefox()
browser.get("http://www.google.com")
for elem in browser.find_elements_by_xpath('.//span[@class = "gbts"]'):
    print elem.text
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #span #text #selenium #python
ADD COMMENT
Topic
Name
1+5 =