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

What hook is needed to trigger browser clicks using Python? #347

Open
HonestQiao opened this issue Dec 13, 2024 · 1 comment
Open

What hook is needed to trigger browser clicks using Python? #347

HonestQiao opened this issue Dec 13, 2024 · 1 comment
Assignees

Comments

@HonestQiao
Copy link

How to control a browser to perform clicks through Python instead of injecting JS to trigger click events?

@unclecode
Copy link
Owner

Hi, two hooks can be used: after_goto and before_retrieve_html, both of them give you access to page, context, and then you can do whatever you want.

@unclecode unclecode self-assigned this Dec 14, 2024
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