Re:Ask HN: Would you be interested in POM generator for Sele...
by brimstedt on Saturday June 11, 2022 @04:02PM
(#31707762)
Seems hurl is quite a different thing than browser automation though?
API/request level testing is great when appropriate, but testing what happens in browser won't be possible without using something like selenium, nightwatch or playwright
Re:Ask HN: Would you be interested in POM generator for Sele...
by jicea on Saturday June 11, 2022 @04:15PM
(#31707915)
Yes totally.
On the other hand, you can also easily test use cases where the browser is “helping” you (for instance, you want to test that your backend didn’t accept an invalid email, but your HTML form has HTML5 validation that prevents a user to enter an invalid email). Or you want to test HttpsOnly cookie attributes. But it can’t do UI integration tests.
It’s as if you would test your app with curl, very fast and reliable. On the other hand, contrary to Selenium, there is no Javascript engine so you can only test the “raw” DOM or json response sent by the network (and not a DOM managed and rendered by a Javascript front end framework).
(Disclaimer: I’m one of Hurl maintainer)
[1]: https://hurl.dev