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
 
PREVIOUS NEXT
Tagged: #python #selenium #text #div
ADD COMMENT
Topic
Name
5+5 =