Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use request intercept with connect() on an existing Chromium instance #146

Open
steve-the-crab opened this issue Apr 10, 2023 · 1 comment

Comments

@steve-the-crab
Copy link

Hi, thanks for your work on this. It's been really nice to work with so far.

Is it possible to do request interception with an existing Chromium instance do you know?

I have made a naive attempt to get this working by copying the code base into my workspace and modifying the connect function in browser.rs such that it takes a BrowserConfig and replaces config: None on line 67 with the supplied config, but the result is that the example code for interception appears to be unsuccessful.

Might there be a way to achieve this?

Thanks!

@steve-the-crab steve-the-crab changed the title Use request intercept with with connect() on an existing Chromium instance Use request intercept with connect() on an existing Chromium instance Apr 10, 2023
@j-mendez
Copy link
Contributor

@steve-the-crab yes, use Browser::connect_with_config and pass in request_intercept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants