Get either Cookies, Session Storage Items or Local Storage Items from the Browser.

Hierarchy

  • Action
    • Get

Properties

abilityAlias?: string
callStack?: CallStackInfo[]

Methods - Factory

  • Get the specified cookies.

    Parameters

    • Optional urls: string | string[]

      (optional): If URLs are specified, only cookies that affect those URLs are returned. If no URLs are specified, this all cookies are returned.

    Returns Get

    new Get instance for cookies

    Example

    get all cookies

    Get.cookies();
    

    get cookies for a single domain

    Get.cookies('https://www.myapp.com');
    

    get cookies for two domains

    Get.cookies(['https://www.myapp.com', 'https://www.another-app.com']);
    
  • Get a local storage item.

    Parameters

    • key: string

      the key that specifies the item.

    Returns Get

    new Get instance for local storage

    Example

    Get.localStorageItem('some key');
    
  • Get a session storage item.

    Parameters

    • key: string

      the key that specifies the item.

    Returns Get

    new Get instance for session storage

    Example

    Get.sessionStorageItem('some key');
    

Methods - Other

  • Parameters

    • entry: CallStackInfo

    Returns void

  • Parameters

    • calledWith: CallStackCalledWith

    Returns void

  • Set the alias which is used for an underlying ability

    Parameters

    • alias: undefined | string

      with which an ability was initialized

    Returns this

    current action

Methods - called internally

  • wait for either a specified loading state or for a locator to become visible/active.

    Parameters

    • actor: Actor

      Actor performing this action

    Returns Promise<any>

    Returns cookies, session storage items or local storage items

Generated using TypeDoc