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

instead of puppeteer.exposeFunction(), use cdp function bindings directly to avoid issues custom toJSON overrides: #775

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ikreymer
Copy link
Member

…ctly to avoid issues custom toJSON overrides:

- add Runtime.addBinding for each exposed function, handle in one place with Runtime.bindingCalled
- convert binding names to BxFunctionBindings enum
- update to browsertrix-behaviors 0.7.1 to avoid waiting for return value
- fixes #770
@ikreymer ikreymer requested a review from tw4l February 21, 2025 06:48
Copy link
Member

@tw4l tw4l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good to me, but in testing it seems that the autoclick behavior might not be working as expected on this branch?

This is the command I'm trying:

docker compose run crawler crawl --url https://www.bs.ch/themen --generateWACZ --scopeType prefix --limit 10 --behaviors autoclick --collection autoclick-test

Off of latest main, replay for this site works as expected (should be able to click the "Arbeit und Steuern" link and have a new page load instead of a generic 500 error). Off this branch it does not. Behavior logging looks identical between the two branches.

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

Successfully merging this pull request may close these issues.

"Invalid Page - not a valid URL" on particular website
2 participants