Matterway
    Preparing search index...

    Function setValue

    • Changes the value of a form element.

      Parameters

      • ctx: Context

        Context object.

      • selector: string

        Element selector.

      • value: any

        New value.

      • Optionaloptions: WaitForSelectorOptions

      Returns Promise<void>

      Keep in mind that using the helper "setValue" on form fields will not trigger change events, and the website will not see the change. In this case, one almost always want to use "fill" or "type" instead.

      await setValue(ctx, '#id-number', '23d79d99S');