alpine-chrome
alpine-chrome copied to clipboard
Return DOM after full loading page.
Me need to get the markup after the page is fully loaded and the javascript is running.
Run docker container run -it --rm zenika/alpine-chrome --no-sandbox --dump-dom https://www.mysite.com/ works well, but I get not the html that the real browser gives.
Perhaps I missed something and hope for your help.
Hi @boorwey
Sorry for the delay and thanks for your report.
I think you cannot get the "real DOM" the browser generates with the command --dump-dom
command.
As described here, it Instructs headless_shell to print document.body.innerHTML to stdout. ↪
If you want to get the current DOM, you need to use something like the DevTools perhaps using Puppeteer. If you succeed doing it with puppeteer, I am very interested to share it as an example in this repository.
I hope this helps and thank again for your issue. 👍
Hi @boorwey 👋
Did you succeed with your problem? 👍
I have this use case as well. Too bad no feedback about it :<