Print HTML text of selenium web element in Python

I am using Selenium webdriver in Python for a web cleanup project.

How to print selenium.WebElement HTML text?

I intend to use BeautifulSoupHTML parsing to extract the data of interest.

thank

+5
source share
1 answer

Unable to get raw HTML from WebElement.

You can get the page source from a browser object: browser.page_source.

+11
source

All Articles