Overview
Tzafon supports two types of computer instances for different use cases.Browser
Chromium browser control
Desktop
Linux desktop environment control
Browser Instances
Control Chromium browsers for web interactions, testing, and scraping.Creating a Browser Instance
Browser Capabilities
Browser instances provide full web control:- Navigation - Visit any URL
- DOM Interaction - Click, type, scroll on web pages
- Form Filling - Submit forms programmatically
- Screenshots - Capture webpage state
- JavaScript Execution - Interact with dynamic content
Use Cases
Web Scraping
Web Scraping
Extract data from websites by navigating, interacting, and capturing screenshots
Testing
Testing
Automated testing of web applications with real browser interactions
Form Filling
Form Filling
Fill out forms, submit data, handle multi-step workflows
Monitoring
Monitoring
Periodically check website state and capture evidence
Desktop Instances
Control Linux desktop environments for application testing and workflows.Creating a Desktop Instance
Desktop Capabilities
Desktop instances provide full desktop control:- Application Control - Launch and interact with desktop apps
- Window Management - Switch between applications
- File Operations - Open, save, manage files through GUI
- Keyboard Shortcuts - Use system-wide hotkeys
- Screenshots - Capture desktop state
Use Cases
GUI Testing
GUI Testing
Automated testing of desktop applications
Desktop Workflows
Desktop Workflows
Control repetitive desktop tasks and processes
Application Integration
Application Integration
Connect desktop applications that lack APIs
Documentation
Documentation
Capture screenshots and recordings of desktop workflows
Comparison
| Feature | Browser | Desktop |
|---|---|---|
| Environment | Chromium browser | Linux desktop |
| navigate() | ✅ Yes | ❌ No |
| click() | ✅ Yes | ✅ Yes |
| type() | ✅ Yes | ✅ Yes |
| screenshot() | ✅ Yes | ✅ Yes |
| hotkey() | ✅ Yes | ✅ Yes |
| scroll() | ✅ Yes | ✅ Yes |
| Persistence | Cookies & storage | VM snapshot |
| Use Case | Web control | Desktop app control |
The
navigate() method is only available for browser instances. All other actions work on both types.Session Creation Options
You can customize session behavior when creating a computer:timeout_seconds- Max lifetime before the session is terminatedinactivity_timeout_seconds- Idle timeout before auto-killauto_kill- If false, disables idle auto-kill (max lifetime still applies)display- Initial viewport settings (width,height,scale)context_id- Optional grouping or tracking IDstealth- Optional stealth configuration objectpersistent- If true, saves session state when session endsenvironment_id- Restore state from a previous persistent sessionuse_advanced_proxy- Use advanced residential proxy (browser only)
Both browser and desktop sessions support persistence. Browser sessions save cookies and storage state. Desktop sessions save a full VM snapshot, preserving installed software, files, and system configuration.