TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

1 点作者 ksj2114将近 5 年前
Any recommended libraries for programmatically filling in forms and accessing data behind them, preferably in Node?

1 comment

benologist将近 5 年前
There&#x27;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.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;puppeteer&#x2F;puppeteer&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;puppeteer&#x2F;puppeteer&#x2F;</a>