Settings

Theme

Ask HN: How to programmatically turn a form into an API?

1 points by ksj2114 6 years ago · 1 comment · 1 min read


Any recommended libraries for programmatically filling in forms and accessing data behind them, preferably in Node?

benologist 6 years ago

There's an API for chrome and firefox that lets you remote-control the browser with code. I use this to run my unit tests so they really fill out forms as a user would and to save screenshots resized in various device resolutions.

https://github.com/puppeteer/puppeteer/

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection