Function clickOnIonAlertButtonByText

Clicks on a button within an ion-alert dialog by matching its text content

  • Parameters

    • page: Page

      The Playwright Page object

    • text: string

      The text content of the button to click

    Returns Promise<void>

    Promise that resolves when the button is clicked