Change viewport from within PlaywrightCrawler router method?
I have a custom Actor that takes screenshots of webpages if the webpage meets certain criteria. I currently set viewport as a pre-navigation hook, like this:
But when I find a page that passes my criteria, I would like to take a screenshot of the page using this viewport size AND a desktop viewport size.
How can I change the viewport from within the playwrightRouter function?
But when I find a page that passes my criteria, I would like to take a screenshot of the page using this viewport size AND a desktop viewport size.
How can I change the viewport from within the playwrightRouter function?