how to get text from div tag in selenium python code example
Example 1: select text in a div selenium python
price = driver.find_element_by_xpath("//div[@class='price inlineBlock strong mediumText']")
price_content = price.get_attribute('innerHTML')
print price_content.strip()
Example 2: how to get text of a tag in selenium python
element.text