This looks interesting for our webdev friends, esp...
# development
b
This looks interesting for our webdev friends, especially the Django and Flask folks. https://til.simonwillison.net/pytest/playwright-pytest Thoughts on potentially adding Playwright support...?
w
Playwright's dope! I use it for all my web automation stuff nowadays, definitely an evolution from the earlier stuff. With Pants, wouldn't it just be a downloaded pip requirement? It's a bit weird, because it has to install chromium somewhere
1
b
Judging by https://playwright.dev/ it would also be possible to include Playwright support for Java.
Copy code
Cross-language. Use the Playwright API in TypeScript, JavaScript, Python, .NET, Java.
w
Ahh, right, this was the "catch"
playwright install
after pip installing it
Installs the browser engines into temp folders
b
@wide-midnight-78598 since you're familiar with the gotchas, would you mind opening a ticket about Playwright? Maybe someone would like to run with it.
w
Sure, not sure if it's a gotcha per se - but we should definitely try it out to see if it's inherently supported
b
If it does get added, I'd love to see you write a blog post about what you appreciate about Playwright and a how-to on using it with Pants.
w
I should write about how not using Playwright got my IP banned off 30% the internet because of a couple scripts gone wild 🤦‍♂️ https://github.com/pantsbuild/pants/issues/16291
🤣 1
😭 1
b
That sounds like a heck of a post, so yes please.