How to automate date pickers in Playwright?
Hello Junior.milton,
Using the fill() command to automate date pickers is a quicker and simpler process.
Here is the code snippet as an example:
import { test } from "@Playwright/test";
test("Calendar demo using fill function", async ({ page }) => {
await page.goto("https://www.lambdatest.com/selenium-playground/bootstrap-date-picker-demo");
let date = "1994-12-04"
await page.fill("id=birthday", date);
await page.waitForTimeout(3000)
})