how to get the source code of a selenium web element python code example Example: python selenium get html content element.get_attribute('innerHTML')