Added Devtools protocol support for Chromium based browsers. #53
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added Devtools protocol support for Chromium based browsers.
Requires Python >=3.6.1 and websockets.
Options now available for those browsers:
Additionally, one more option was created:
I will add a work around for the HTTP Host header in my personal repository, I don't include this work around here because it's very messy, and to be honest, I don't think that many people would benefit from it. I need this because some times I want to screenshot against some WAF protected sites directly using the IP address, but for virtual hosts I need to inject the host header.
TODO: To spawn an independent instance of the Chrome/Chromium browser, a temporary directory is created to load a new Profile (in the current working directory). Some logic has to be added to handle this directory (move it to another location or delete it after the process is completed).
It's was very easy to add new functionality to the code because it's very well structured.
Thanks for this amazing tool.