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

Expose DevToolsProtocol and Browser.fetchInfo API #52

Closed
zawodskoj opened this issue Jun 26, 2020 · 2 comments
Closed

Expose DevToolsProtocol and Browser.fetchInfo API #52

zawodskoj opened this issue Jun 26, 2020 · 2 comments

Comments

@zawodskoj
Copy link

zawodskoj commented Jun 26, 2020

Browser class does not have any events like targetCreated/targetDestroyed
I need to use CDP directly for these events and the only way to do this is

  1. copy "fun fetchInfo" from Browser and create connection with acquired websocket url
  2. create DevToolsProtocol via Reflection API

Making this API public is easy and require almost no changes (I can even make PR by myself)
Can you do that?

@wendigo
Copy link
Owner

wendigo commented Mar 19, 2021

@zawodskoj fixed :) I'll try to release new version soon

@wendigo wendigo closed this as completed Mar 19, 2021
@wendigo
Copy link
Owner

wendigo commented Mar 21, 2021

This is now exposed as Browser now extends ProtocolDomains exactly as Target is :)

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