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

    Returns Promise<void>

    Example

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

    Example

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

Generated using TypeDoc