_:nb7c8f75be2b841c0b9c4be2f9ded2a50xb1
<http://schema.org/text>
"I'm using the Python bindings to run Selenium WebDriver.from selenium import webdriverwd = webdriver.Firefox()I&#8217;m getting web elementelem = wd.find_element_by_css_selector('#my-id')I&#8217;m getting the full page source with...wd.page_sourceBut what are other ways to get the \"element source\"?elem.source&#160; &#160;# &lt;-- returns the HTML as a stringHow to access the HTML of an element (and its children)?"
<https://www.edureka.co/community/6764/get-html-source-webelement-selenium-webdriver-using-python>