Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture HTML after element has been changed

I am looking for automated way to capture HTML after I do some actions on the web page.

For example I select some item in dropdown and HTML has been changed, i want to capture that HTML and dump into file. As result, I will end up with many different HTML files on my hdd.

I was thinking it might be possible to achieve that by using Selenium, maybe some other plugin which would give me possibility so save HTML in automatic manner to file.

like image 1000
Wild Goat Avatar asked Oct 15 '25 01:10

Wild Goat


1 Answers

do you mean source code?

for Python:

driver.page_source

for Java:

driver.getPageSource();

you can run these code after each step where page is changed

like image 120
Mahsum Akbas Avatar answered Oct 18 '25 06:10

Mahsum Akbas