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 |
| Use Case | Web control | Desktop app control |
The
navigate() method is only available for browser instances. All other actions work on both types.Lifecycle Management
Manual Management
Explicitly terminate when done:Automatic Management (Recommended)
Use context managers for automatic cleanup:Multiple Instances
You can create and manage multiple instances simultaneously:Choosing the Right Type
1
Web Control?
Use browser instances for websites and web applications
2
Desktop Apps?
Use desktop instances for Linux desktop applications
3
Both?
Create multiple instances as needed