Sandbox
Properties
Methods
doubleClick()
Returns
Promise<void>
getCursorPosition()
Returns
Promise<CursorPosition>
A object with the x and y coordinates
Throws
Error if cursor position cannot be determinedgetScreenSize()
Returns
Promise<ScreenSize>
An ScreenSize object
Throws
Error if screen size cannot be determinedleftClick()
Returns
Promise<void>
middleClick()
Returns
Promise<void>
moveMouse()
Parameters
Returns
Promise<void>
open()
Parameters
Returns
Promise<void>
press()
Parameters
Returns
Promise<void>
rightClick()
Returns
Promise<void>
screenshot()
Call Signature
Returns
Promise<Uint8Array<ArrayBufferLike>>
A Uint8Array bytes representation of the screenshot.
Call Signature
Parameters
Returns
Promise<Uint8Array<ArrayBufferLike>>
A Uint8Array bytes representation of the screenshot.
Call Signature
Parameters
Returns
Promise<Blob>
A Blob representation of the screenshot.
Call Signature
Parameters
Returns
Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>
A ReadableStream of bytes representation of the screenshot.
scroll()
Parameters
Returns
Promise<void>
waitAndVerify()
Parameters
Returns
Promise<boolean>
true if the command returned the result within the timeout, otherwise false.
write()
Parameters
Returns
Promise<void>
create()
Call Signature
desktop sandbox template.
Type Parameters
Parameters
Returns
Promise<InstanceType<S>>
sandbox instance for the new sandbox.
Example
Constructs
SandboxType Parameters
Parameters
Returns
Promise<InstanceType<S>>
sandbox instance for the new sandbox.