https://pantsbuild.org/ logo
#development
Title
# development
b

busy-vase-39202

07/25/2022, 4:46 PM
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

wide-midnight-78598

07/25/2022, 4:48 PM
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

busy-vase-39202

07/25/2022, 4:51 PM
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

wide-midnight-78598

07/25/2022, 4:54 PM
Ahh, right, this was the "catch"
playwright install
after pip installing it
Installs the browser engines into temp folders
b

busy-vase-39202

07/25/2022, 5:04 PM
@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

wide-midnight-78598

07/25/2022, 5:14 PM
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

busy-vase-39202

07/25/2022, 5:16 PM
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

wide-midnight-78598

07/25/2022, 5:23 PM
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

busy-vase-39202

07/25/2022, 5:24 PM
That sounds like a heck of a post, so yes please.