Function getValue

  • Returns the value of a form element.

    Parameters

    • ctx: Context

      Context object.

    • selector: string

      The element selector for which to return value.

    • Optional options: WaitForSelectorOptions

    Returns Promise<null | string>

    The value of the form element as a string.

    Example

    const firstName = await getValue(ctx, 'input[name="firstName"]');
    

Generated using TypeDoc