Sandbox
create
desktop sandbox template.
Arguments:
template: Sandbox template name or IDresolution: Startup the desktop with custom screen resolution. Defaults to (1024, 768)dpi: Startup the desktop with custom DPI. Defaults to 96display: Startup the desktop with custom display. Defaults to “:0”timeout: Timeout for the sandbox in seconds, default to 300 seconds. The maximum time a sandbox can be kept alive is 24 hours (86_400 seconds) for Pro users and 1 hour (3_600 seconds) for Hobby users.metadata: Custom metadata for the sandboxenvs: Custom environment variables for the sandboxsecure: Envd is secured with access token and cannot be used without itallow_internet_access: Allow sandbox to access the internet, defaults toTrue.
beta_create
desktop sandbox template.
Arguments:
template: Sandbox template name or IDresolution: Startup the desktop with custom screen resolution. Defaults to (1024, 768)dpi: Startup the desktop with custom DPI. Defaults to 96display: Startup the desktop with custom display. Defaults to “:0”timeout: Timeout for the sandbox in seconds, default to 300 seconds. The maximum time a sandbox can be kept alive is 24 hours (86_400 seconds) for Pro users and 1 hour (3_600 seconds) for Hobby users.auto_pause: Automatically pause the sandbox after the timeout expires. Defaults toFalse.metadata: Custom metadata for the sandboxenvs: Custom environment variables for the sandboxsecure: Envd is secured with access token and cannot be used without itallow_internet_access: Allow sandbox to access the internet, defaults toTrue.
screenshot
screenshot
screenshot
format: The format of the screenshot. Can be ‘bytes’, ‘blob’, or ‘stream’.
left_click
double_click
middle_click
scroll
direction: The direction to scroll. Can be “up” or “down”.amount: The amount to scroll.
move_mouse
x: The x coordinate.y: The y coordinate.
mouse_press
mouse_release
get_cursor_position
RuntimeError: If the cursor position cannot be determined
get_screen_size
RuntimeError: If the screen size cannot be determined
write
text: The text to write.chunk_size: The size of each chunk of text to write.delay_in_ms: The delay between each chunk of text.
press
key: The key to press (e.g. “enter”, “space”, “backspace”, etc.).
drag
from: The starting position.to: The ending position.
wait
ms: The amount of time to wait in milliseconds.
open
file_or_url: The file or URL to open.