Prerequisites
Before you begin, make sure you have:- VNC server running - A VNC server must be started (see VNC Server)
- Desktop template - A sandbox with desktop support enabled
- Active sandbox - A running sandbox with desktop capabilities
- Basic desktop automation - Familiarity with basic desktop operations is helpful
Overview
X11 advanced features enable:- OCR (Optical Character Recognition) text extraction
- Finding UI elements by text
- Waiting for elements to appear
- Advanced drag and drop
- Window capture
- Hotkey execution
Desktop automation requires a template with desktop support. Ensure your sandbox has desktop capabilities enabled.
OCR (Optical Character Recognition)
Extract text from screen regions using OCR:- Python
- JavaScript
Finding Elements
Find UI elements by text:- Python
- JavaScript
Waiting for Elements
Wait for an element to appear:- Python
- JavaScript
Getting Element Bounds
Get bounding box of an element:- Python
- JavaScript
Advanced Drag and Drop
Drag and drop operations:- Python
- JavaScript
Window Capture
Capture specific window:- Python
- JavaScript
Hotkeys
Execute hotkey combinations:- Python
- JavaScript
Complete Example
Complete workflow using advanced features:- Python
- JavaScript
OCR Languages
Supported OCR languages:- eng: English (default)
- spa: Spanish
- fra: French
- deu: German
- And more (check Tesseract language support)
Related
- Screenshots - Basic screenshot capture
- Mouse Control - Mouse operations
- Keyboard Control - Keyboard operations
- SDK: sandbox.desktop.ocr() - Python SDK method
Next Steps
- Learn about Screenshots for basic image capture
- Explore Mouse Control and Keyboard Control for interactions
- Review VNC Server for remote desktop access
- Mouse Control - Basic mouse operations
- Keyboard Control - Basic keyboard operations
- Screenshots - Screenshot capture
- CLI System Commands - System operations from CLI

