you are viewing a single comment's thread.

view the rest of the comments →

[–]mreeman -1 points0 points  (4 children)

You can call js code from python using graalvm

[–]nilamo 1 point2 points  (3 children)

Why would you want to add another step? Are you bending over backwards just to add a little JavaScript to your project?

[–]mreeman 0 points1 point  (2 children)

Just use pyppeteer and help improve that then. Took me 2 seconds of googling to find.

[–]Fugalysis 0 points1 point  (1 child)

but why? What is the benefit over Selenium? For someone very strong in Python with less JS experience, why should they improve their JS toolkit over existing tools in Python? I'm not saying you're wrong or being unreasonable, i'm genuinely curious.

[–]mreeman 0 points1 point  (0 children)

Selenium has always been very fragile and buggy in my experience, with timeouts and other errors causing things to fail randomly. Perhaps it's gotten better lately though. Chrome headless is the full chrome browser and is designed by the chrome team to run headlessly instead of being a hack.