Open mlin12321 opened 2 months ago
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.
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"...)