Sandbox
Properties
Methods
doubleClick()
Parameters
Returns
Promise<void>
drag()
Parameters
Returns
Promise<void>
getApplicationWindows()
Parameters
Returns
Promise<string[]>
The ID of the window.
getCurrentWindowId()
Returns
Promise<string>
The ID of the current window.
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 determinedgetWindowTitle()
Parameters
Returns
Promise<string>
The title of the window.
launch()
Parameters
Returns
Promise<void>
leftClick()
Parameters
Returns
Promise<void>
middleClick()
Parameters
Returns
Promise<void>
mousePress()
Parameters
Returns
Promise<void>
mouseRelease()
Parameters
Returns
Promise<void>
moveMouse()
Parameters
Returns
Promise<void>
open()
Parameters
Returns
Promise<void>
press()
Parameters
Returns
Promise<void>
rightClick()
Parameters
Returns
Promise<void>
screenshot()
screenshot()
Returns
Promise<Uint8Array<ArrayBufferLike>>
A Uint8Array bytes representation of the screenshot.
screenshot(format)
Parameters
Returns
Promise<Uint8Array<ArrayBufferLike>>
A Uint8Array bytes representation of the screenshot.
screenshot(format)
Parameters
Returns
Promise<Blob>
A Blob representation of the screenshot.
screenshot(format)
Parameters
Returns
Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>
A ReadableStream of bytes representation of the screenshot.
scroll()
Parameters
Returns
Promise<void>
wait()
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()
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.