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

Here is what the above code is Doing:
1. It’s finding the element with the class name “test-class”
2. It’s getting the text from that element
3. It’s printing the text to the console