Ask HN: Would you be interested in POM generator for Selenium?
20 points| mesadb | 3 years ago
It will work this way: - Go to the page you want the POM for - Open the chrome extension - Click on generate POM - We will generate POM - You can add/remove some sections
Some other benefits might come with it is Email and PDF testing for Selenium.
Curious what you think about this?
jmll|3 years ago
I do see a niche for an system (AI or not) that deals with that last case (i.e. it automatically grabs some correlated selectors to fallback to), or as a quick tool to scrape static sites.
However (and this may be out of your proposed scope, and that's fine) I see more value on something that can construct a sort of DOM timeline - in order to accurately know what is available and when. If you start "recording" network and user events since page load, you may be able to reconstruct a) which nodes the user interacted with b) which preconditions there are for these nodes to be consistently available, no matter which stochastic delays/errors are present.
This is tricky and time consuming even when done manually, so I'm not sure it can be AI-mplemented. But that's maybe an idea to explore down the line :)
mherrmann|3 years ago
Etheryte|3 years ago
[0] https://developer.mozilla.org/en-US/docs/Web/API/MutationObs...
speps|3 years ago
[1] https://www.browserstack.com/guide/page-object-model-in-sele...
mhb|3 years ago
lloydatkinson|3 years ago
ozim|3 years ago
I still think any E2E test tooling will have the same issues and be simply horrible.
mesadb|3 years ago
glmeece|3 years ago
Also of note: Selenium was really designed for "Web 1.x" and doesn't assume the dynamic DOMs of today. Modern frameworks like Playwright are built with the understanding that the DOM is dynamic and are more robust. So - consider Playwright (or something like it - although I think it's "best of breed") vs. Selenium.
dzhar11|3 years ago
It was a time when I had to test an IE6-only enterprise web tool, And there was no option to copy CSS-selector in Chrome/Firefox. I am not working in UI automation anymore (sad :( ) and lost interest in this project, but I think having a tool to record page objects and generate some smart automation code can still be quite helpful.
mesadb|3 years ago
I'll drop you an email when we are able to launch it. Would love to get your feedback
notadev|3 years ago
jitl|3 years ago
clarle|3 years ago
Would love to learn from your experiences on any better frameworks you might have used, though!
tailspin2019|3 years ago
sattoshi|3 years ago
mesadb|3 years ago
shyn3|3 years ago
Implement that for scraping and that would be great I think.
mesadb|3 years ago