Prompt Popup

Prompt Popup with Default Message

Prompt Popup Example

Comments

  1. import test, { Page } from "@playwright/test";

    test("handling_prompt", async({page})=>{


    await page.goto("https://playwrightautomationtesting.blogspot.com/2025/01/prompt.html")

    await page.getByText("Click me to open the prompt").click();

    await page.locator("#userInput").fill("Tested_prompt");

    await page.getByText("Submit").click();

    await page.waitForTimeout(5000);


    })

    ReplyDelete

Post a Comment

Popular Posts