Matterway
    Preparing search index...

    Function setCheckbox

    • Checks the checkbox element, unless a specific value is passed.

      Parameters

      • ctx: Context
      • selector: string

        Selector for checkbox to toggle.

      • value: boolean = true
      • Optionaloptions: WaitForSelectorOptions

      Returns Promise<void>

      await setCheckbox(page, 'input[id="first-checkbox"]');
      
      await setCheckbox(page, 'input[id="third-checkbox"]', false);