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 4 weeks ago

thomaswiradikusuma commented 4 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 4 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 1 month 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 1 month ago

@all-contributors add @thomaswiradikusuma for idea

allcontributors[bot] commented 1 month ago

@melloware

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

melloware commented 1 month 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 month 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 month ago

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

melloware commented 4 weeks 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.