Function setProperty

  • Changes the value of an element property.

    Parameters

    • ctx: Context

      Context object.

    • selector: string

      Element selector.

    • propertyName: string

      The property to be set.

    • value: string

      The value to set the property to.

    • Optional options: WaitForSelectorOptions

    Returns Promise<void>

    Example

    await setProperty(ctx, '#my-selector', 'disabled', 'true');
    

Generated using TypeDoc