Function getProperty

  • Returns the value of an element property.

    Parameters

    • ctx: Context

      Context object.

    • selector: string

      Element selector.

    • propertyName: string

      The name of the property to retrieve.

    • Optional options: WaitForSelectorOptions

    Returns Promise<null | string>

    The property value as a string.

    Example

    const clientName = await getProperty(ctx, 'input[name="firstName"]', 'value');
    

Generated using TypeDoc