'Gets html page source.
self.driver.page_source is not used on purpose because it does not
display html code generated/changed by javascript.'

def _get_page_html_source(self):

    html_elem = self.driver.find_element_by_tag_name('html')
    return html_elem.get_attribute('innerHTML').encode('utf-8')
