How can one get all the text of a Webdriver instance?
To get the text of a Webelement is straightforward, as explained for instance here:
element1.text
or
element1.get_attribute('innerHTML')
However, to get it from the Webdriver element I did not find similar solution. I just figured out the following two-step approach:
driver.get(url)
driver.find_element_by_tag_name('body').text
but it seems to me that there has to be a better way...