Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ThenableEnvironment

Hierarchy

Index

Properties

env

env: Promise<Environment>

Methods

cleanClipboard

  • cleanClipboard(): Promise<void>

copyIntoClipboard

decryptSecret

  • decryptSecret(secret: string): Promise<string>

getClipboard

  • getClipboard(): Promise<string>

getClipboardMasked

  • getClipboardMasked(): Promise<string>

getEnv

  • getEnv(key: string): Promise<string | null>

getEnvMasked

  • getEnvMasked(key: string): Promise<string | null>

getOsIdentifier

  • getOsIdentifier(): Promise<string>

getProperty

  • getProperty(key: string): Promise<string | null>

getPropertyMasked

  • getPropertyMasked(key: string): Promise<string | null>

getRegionFromFocusedWindow

getSimilarity

  • getSimilarity(): Promise<number>

isDarwin

  • isDarwin(): Promise<boolean>

isLinux

  • isLinux(): Promise<boolean>

isWindows

  • isWindows(): Promise<boolean>

keyDown

keyUp

mouseWheelDown

mouseWheelUp

paste

pasteAndDecrypt

pasteClipboard

pasteMasked

resetSimilarity

  • resetSimilarity(): Promise<void>

runCommand

  • runCommand(command: string, optThrowException: boolean): Promise<CommandLineResult>

setClipboard

setClipboardMasked

setSimilarity

  • setSimilarity(similarity: number): Promise<void>

sleep

sleepMs

takeScreenshot

  • takeScreenshot(filename: string): Promise<string>

takeScreenshotWithTimestamp

  • takeScreenshotWithTimestamp(filename: string): Promise<string>

then

  • then<TResult1, TResult2>(onfulfilled?: function | undefined | null, onrejected?: function | undefined | null): PromiseLike<TResult1 | TResult2>
  • Attaches callbacks for the resolution and/or rejection of the Promise.

    Type parameters

    • TResult1

    • TResult2

    Parameters

    • Optional onfulfilled: function | undefined | null

      The callback to execute when the Promise is resolved.

    • Optional onrejected: function | undefined | null

      The callback to execute when the Promise is rejected.

    Returns PromiseLike<TResult1 | TResult2>

    A Promise for the completion of which ever callback is executed.

type

typeAndDecrypt

typeMasked

write