<reponame>Ajay-2007/Web-Scraping-Projects<filename>Playwright-JS/tests/2.ClientApp.spec.js<gh_stars>0const {test, expect} = require('@playwright/test');


test('register and login with playwright codegen', async ({page}) => 
{
    await page.goto("https://rahulshettyacademy.com/client");

    await page.locator("#userEmail").fill("kenaa@example.com");
    await page.locator("#userPassword").fill("Password@@@@@123");
    await page.locator("[value='Login']").click();

    // wait until network is idle
    await page.waitForLoadState('networkidle');


    const titles = await page.locator('.card-body b').allTextContents();

    console.log(titles);
})