Skip to content

Full screen view #10

Description

@lolpa1n

Hello! How do I open a program full-screen? Right now, only half is occupied.

import time

# Create a sandbox environment
sandbox = Sandbox(
    os_type="Ubuntu",           # Currently only Ubuntu is supported
    provider_type="docker",     # Currently only Docker is supported
    headless=False,              # Run without VNC viewer
    resolution=(1440, 900),
    disk_size="32G",
    ram_size="4G",
    cpu_cores="4",
    stream_server=True,
    dpi=96,
    timeout=1000
)


try:
    sandbox.open("https://www.google.com")
    window_id = sandbox.get_current_window_id() # get the current activate window id.
    print(sandbox.window_size(window_id))
    
    while True:
        time.sleep(1)  
        
except KeyboardInterrupt:
    print("\nClose...")
    
finally:
    sandbox.close()```

[2026-01-23 16:08:25,572 INFO] Got window size successfully
status=<StatusEnum.SUCCESS: 'success'> message=None width=1050 height=880 is_active=True window_id='20971523' 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions