quarkiverse / quarkus-playwright

Playwright enables reliable end-to-end testing for modern web apps
https://playwright.dev/
Apache License 2.0
6 stars 2 forks source link

Playwright in Quarkus Native (not for E2E testing) #68

Closed thomaswiradikusuma closed 1 week ago

thomaswiradikusuma commented 3 months ago

I understand that Quarkus supports Playwright for E2E testing, but I want to use it for web scraping. Specifically, I want to deploy Native Quarkus which uses Playwright to scrape websites.

Is this supported by this plugin? Does it work when compiled to Native?

melloware commented 3 months ago

I bet since its marked as a Test component its gets compiled out? But go ahead and just try it and let us know?

melloware commented 2 weeks ago

@ia3andy mentioned here: https://github.com/quarkiverse/quarkus-playwright/issues/26#issuecomment-2122694441

It's not possible, it won't compile, because of a restriction on dependencies

But i would like to verify?

melloware commented 2 weeks ago

@all-contributors add @thomaswiradikusuma for idea

allcontributors[bot] commented 2 weeks ago

@melloware

I've put up a pull request to add @thomaswiradikusuma! :tada:

melloware commented 2 weeks ago

OK I have it working as a runtime: https://github.com/quarkiverse/quarkus-playwright/pull/95

Next is trying to make it work in Native mode.

thomaswiradikusuma commented 1 week ago

@melloware I went to other direction (I use JavaScript and made it a micro service hehe), but I'll be happy to test this. I think with GenAI, more and more people require scraping capability.

melloware commented 1 week ago

Ok got it working. Just waiting on some feedback from other devs before merging it.

melloware commented 1 week ago

@thomaswiradikusuma 2.0.0 is in Maven Central and I would love some feedback on your GraalVM testing to see if I missed anything.