Sandbox
Methods
doubleClick()
Returns
Promise<CommandResult>
getCursorPosition()
Returns
Promise<object>
An object with x and y coordinates.
getScreenSize()
Returns
Promise<object>
An object with width and height properties.
getVideoStreamUrl()
Returns
Promise<string>
hotkey()
Parameters
Returns
Promise<CommandResult>
leftClick()
Returns
Promise<CommandResult>
middleClick()
Returns
Promise<CommandResult>
moveMouse()
Parameters
Returns
Promise<CommandResult>
open()
Parameters
Returns
Promise<CommandHandle>
press()
Parameters
Returns
Promise<CommandResult>
rightClick()
Returns
Promise<CommandResult>
runPyautoguiCode()
Parameters
Returns
Promise<CommandResult>
scroll()
Parameters
Returns
Promise<CommandResult>
takeScreenshot()
takeScreenshot()
Returns
Promise<Uint8Array>
A Uint8Array bytes representation of the screenshot.
takeScreenshot(format)
Parameters
Returns
Promise<Uint8Array>
A Uint8Array bytes representation of the screenshot.
takeScreenshot(format)
Parameters
Returns
Promise<Blob>
A Blob representation of the screenshot.
takeScreenshot(format)
Parameters
Returns
Promise<ReadableStream<Uint8Array>>
A ReadableStream of bytes representation of the screenshot.
write()
Parameters
Returns
Promise<CommandResult>
create()
create(this, opts)
desktop sandbox template.
Type Parameters
Parameters
Returns
Promise<InstanceType<S>>
sandbox instance for the new sandbox.
Example
Constructs
Sandboxcreate(this, template, opts)
Type Parameters
Parameters
Returns
Promise<InstanceType<S>>
sandbox instance for the new sandbox.
Example
Constructs
SandboxInterfaces
SandboxOpts
Properties
onVideoStreamStart()?
Parameters
Returns
void