I've tried use this driver.page_source
but I only getting a .html file. I would like to get full page content including JS, IMGs... using selenium python. Does anyone know how to make this?
Asked
Active
Viewed 27 times
1
-
web browsers in menu have function `Save as ...` which can save all files used by page but `Selenium` doesn't give access to menu in browser. You may need tools like [pyautogui](https://pyautogui.readthedocs.io/en/latest/) or [pynput](https://pynput.readthedocs.io/en/latest/) which can control keyboard and mouse and it can click menu, etc. On Windows you could also use [pywinauto](https://pywinauto.github.io/) – furas Aug 25 '20 at 12:44
-
see also: [Driving a Windows GUI program from a script](https://stackoverflow.com/questions/9698512/driving-a-windows-gui-program-from-a-script) – furas Aug 25 '20 at 12:53
-
I've found a extension that solve my problems, `https://chrome.google.com/webstore/detail/save-page-we/dhhpefjklgkmgeafimnjhojgjamoafof/related. ` I needed to use this because Chrome was not saving correctly. – Marco Antonio Amorelli Aug 26 '20 at 12:01