Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python selenium get text of div

# Don't use find_element_by_class use find_element_by_xpath

textFromDiv = driver.find_element_by_xpath("//div[@class='']").text
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #selenium #text #div
ADD COMMENT
Topic
Name
9+2 =