A Node.js-based automation server that integrates Selenium WebDriver with WebSocket communication.
The program listens for WebSocket signals, and upon receiving commands, it uses Selenium to navigate web pages and retrieve or display information in real time.
This architecture is suitable for remote browser control, monitoring tools, automated testing, or assisted web automation services.
- 🔌 Runs a WebSocket server
- 📥 Receives commands via WebSocket messages
- 🌐 Controls and navigates web pages using Selenium
- 🔍 Extracts and processes page information
- ⚡ Real-time, event-driven browser automation
- Node.js
- Selenium WebDriver
- WebSocket (ws)
- Chrome / Chromium (or Firefox)
npm installOR (또는)
yarn installcp .env.example .env
vim .env <= edit it, your environment - Install Chrome / Chromium (or Firefox)
- Ensure the WebDriver version matches the browser version
node index.js- Start the server and wait for WebSocket connections
- A client sends a command via WebSocket
- The server receives and parses the command
- Selenium performs the requested browser action (e.g., navigation)
- Required data is extracted or the action is executed
- The result is returned via WebSocket or logged
MIT License