Preferences

>using Axiom is 10X faster than writing it in selenium/puppeteer + we handle all the annoying logic you need. We're investigating a node library for this - let us know if it would be useful.

As someone who has recently started working with puppeteer, I definitely think a library to alleviate that pain would be immensely valuable.


Interesting!

If any puppeteer developers would also find it useful, let us know - it's always good to know something is wanted before you make it.

Check out Headless Recorder. It records browser interactions and generates Puppeteer and Playwright scripts.

https://github.com/checkly/headless-recorder

So what I'm suggesting is slightly different.

This outputs a series of clicks and keyboard events. It doesn't handle the logic necessary for most JS-heavy web-apps.

Scraping an infinite scroll is a good example. A naive algorithm is - scroll, wait, scrape, scroll, wait, scrape...

We have a slightly more sophisticated algorithm to deal with this. Also, what happens when you encounter a page with multiple iframes?

I'm essentially talking about a library which works with higher-level abstractions than just click and type, perhaps 'ScrapeInfiniteScroll' - and similar operations.

As a developer about to go down the e2e testing pipeline for our new products and chosen puppeteer, I would also be very interested in this.
I always hated writing e2e tests (tools like Cypress just didn't cut it for me), so I put this together a while back (it's open source, MIT licensed): https://github.com/testfront-io/testfront-devtools

See also https://www.testfront.io/ for an actual description of how it works, but don't bother signing up. I'm really bad at marketing/getting the word out, and google took forever to approve the extension so I lost interest/ran out of money. Maybe if others show interest, I'll be motivated to resume the plans I had for it.

Here's a 4 minute video of it in action, covering every user join/login/update possibility: https://www.youtube.com/watch?v=ifkaptIYeL8

for anyone else about to go down the e2e testing road - I recommend checking out cypress.io
Funnily enough, the first axiom prototype we sold customers was on cypress.io - I liked it!

We switched it out for puppeteer as it was more suited as a library for our-case. Cypress is a great batteries-included E2E solution though.

We’re building this at Superadmin, specifically for e2e tests. We’re a little bit early but would love to collect feedback. Can we get you in as an early user?

This item has no comments currently.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal