3 ms·
what are the challenges with the Chrome extension path?
by aethelingas 2y ago
what are the challenges with the Chrome extension path?
- Oras 2y agoYou need to call an API to screenshot the page, then figure out the JavaScript code to execute it. It’s not as easy as it might sound. Playwright and selenium automate the browser itself, but with the chrome extension you need to use the context of the current browser. I’m not an expert in browser automation so found it challenging moving from playwright to make it completely browser based.
- gregpr07 2y agoI don’t know a lot about this but do you have full power of Selenium or not? That would be also very interesting aproach especially when “local” browser models get very good
- Oras 2y agoFrom 3 days playing around it, I couldn’t find a way to use selenium or playwright in the browser. What I did though is having a loop to send instructions from playwright. For instance, I will open the browser, and then enter a loop to await for instructions (can be from event such as redis) to execute again in the same browser. But still, it’s based on the session instantiated by playwright.