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

som branch, strange issues with interacting with javascript (does not exist) #42

Open
mlin12321 opened this issue Jun 23, 2024 · 1 comment

Comments

@mlin12321
Copy link

mlin12321 commented Jun 23, 2024

Title, for some reason calling playwright page.evaluate("function") sometimes throws a not defined error on some pages, e.g. for page.evaluate("unmarkPage()") and page.evaluate(..."drawBoxes"...)

@duz-sg
Copy link
Collaborator

duz-sg commented Jul 5, 2024

One possible reason is the page has certain redirect after the functions are evaluated.
These functions need to be used after the mark_page.js been evaluated. If some page, for example, jumps to a new pages after few seconds, the whole page has been changed, then these functions become unavalable, unless the mark_page.js get evaluated again.

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