python selenium copy text in xpath 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: copy class selenium python
content = driver.find_elements_by_xpath('//span[@class="rankingItem-value js-countable"]')[0].text