Dialog Functions#

This section documents dialog functions used in the automation testing suite.

handleConfirmation#

handleConfirmation(page, confirm, waitForDialog)#

Handles a confirmation dialog with options to confirm or cancel

Arguments:
  • page (Page) – Playwright page object

  • confirm (boolean) – Whether to confirm (true) or cancel (false)

  • waitForDialog (number) – Optional time to wait for dialog visibility (default: 2000ms)

Returns:

Promise