Matterway
    Preparing search index...

    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.

      • Optionaloptions: WaitForSelectorOptions

      Returns Promise<string | null>

      The property value as a string.

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