Search This Blog
A dedicated site offering various scenarios to practice web automation, including elements like sliders, tables, and forms
A dedicated site offering various scenarios to practice web automation, including elements like sliders, tables, and forms
import test, { Page } from "@playwright/test";
ReplyDeletetest("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);
})