1 price = driver.find_element_by_xpath("//div[@class='price inlineBlock strong mediumText']")
2 price_content = price.get_attribute('innerHTML')
3 print price_content.strip()
1# Don't use find_element_by_class use find_element_by_xpath
2
3textFromDiv = driver.find_element_by_xpath("//div[@class='']").text