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

Add support for retrieving an event class by it's CDP method name #23

Open
zaygraveyard opened this issue Feb 26, 2021 · 0 comments
Open

Comments

@zaygraveyard
Copy link

While trying to use trio-chrome-devtools-protocol, I encountered the need to dynamically retrieve an event class by it's CDP method name in order to wait_for() it or listen() to it

Is it possible to add support for that use case?

Maybe something like cdp.utils.get_event_class():

def get_event_class(method: str) -> typing.Any:
    return _event_parsers[method]
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

1 participant