
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
web-automation-server
Advanced tools
Web Automation Server là một công cụ mạnh mẽ cho phép tự động hóa các thao tác trong trình duyệt thông qua API RESTful. Sử dụng Playwright làm nền tảng, server này cho phép bạn điều khiển trình duyệt, thực hiện các hành động như click, điều hướng, nhập liệu, và chụp ảnh màn hình.
Bạn có thể chạy Web Automation Server trực tiếp bằng npx mà không cần cài đặt:
npx web-automation-server
Server sẽ khởi động trên cổng 3100 (mặc định).
Nếu bạn muốn cài đặt toàn cục:
npm install -g web-automation-server
Sau đó chạy:
web-automation-server
POST http://localhost:3100/api/session/start
Content-Type: application/json
{
"projectId": "my-project",
"options": {
"browserType": "chromium",
"headless": false
}
}
POST http://localhost:3100/api/navigate
Content-Type: application/json
{
"projectId": "my-project",
"url": "https://example.com"
}
POST http://localhost:3100/api/click
Content-Type: application/json
{
"projectId": "my-project",
"selector": "#submit-button"
}
POST http://localhost:3100/api/type
Content-Type: application/json
{
"projectId": "my-project",
"selector": "#username",
"text": "testuser"
}
POST http://localhost:3100/api/screenshot
Content-Type: application/json
{
"projectId": "my-project"
}
POST http://localhost:3100/api/actions/sequence
Content-Type: application/json
{
"projectId": "my-project",
"actions": [
{ "type": "navigate", "params": { "url": "https://example.com" } },
{ "type": "click", "params": { "selector": "#button" } }
]
}
POST http://localhost:3100/api/project/config
Content-Type: application/json
{
"projectId": "my-project",
"config": {
"actions": {
"login": [
{ "type": "navigate", "params": { "url": "https://example.com/login" } },
{ "type": "type", "params": { "selector": "#username", "text": "${username}" } },
{ "type": "type", "params": { "selector": "#password", "text": "${password}" } },
{ "type": "click", "params": { "selector": "#login-button" } }
]
}
}
}
POST http://localhost:3100/api/project/action
Content-Type: application/json
{
"projectId": "my-project",
"actionId": "login",
"params": {
"username": "testuser",
"password": "password123"
}
}
POST http://localhost:3100/api/session/close
Content-Type: application/json
{
"projectId": "my-project"
}
MIT
FAQs
A flexible web automation server using Playwright
We found that web-automation-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.