Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Playwright Beginner Tutorial 8 | Demo Login Test
Play lesson

Playwright Beginner Tutorials - Playwright Beginner Tutorial 8 | Demo Login Test

4.0 (1)
16 learners

What you'll learn

This course includes

  • 6.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

▬ ALL FREE COURSES ► https://automationstepbystep.com/ ▬ QUIZ - https://forms.gle/F1K2XyT8PVX3YUz28 00:00 *Intro* 00:15 *Demo Apps* 01:20 *1st Login test* 08:39 *Commands to wait for element* 11:41 *2nd Login test* 14:35 *3rd Login test* ▬ ASK RAGHAV ► https://bit.ly/2CoJGWf Create and Run a demo login test Playwright sample login tests test('Login demo test 1', async ({ page }) => { await page.goto('https://demo.applitools.com/') await page.pause() await page.locator('[placeholder="Enter your username"]').fill('Raghav'); await page.locator('[placeholder="Enter your password"]').fill('1234'); await page.locator('text=Sign in').click(); await page.locator('text=ACME').isVisible(); }) await page.waitForSelector('text=Sign in', { timeout: 4000 }) await expect(page.locator('text=Sign in')).toHaveCount(1) test('Login demo test 2', async ({ page }) => { await page.goto('https://opensource-demo.orangehrmlive.com/web/index.php/auth/login') await page.pause() await page.locator('[placeholder="Username"]').fill('Admin') await page.locator('[placeholder="Password"]').fill('admin123') await page.locator('button:has-text("Login")').click() await page.locator('p:has-text("Paul Collings")').click() await page.locator('text=Logout').click() await page.close(); }) test.only('Login demo test 3', async ({ page }) => { await page.goto('https://admin-demo.nopcommerce.com/login'); await page.locator('input[name="Email"]').click(); await page.locator('input[name="Email"]').press('Control+a'); await page.locator('input[name="Email"]').fill('[email protected]'); await page.locator('input[name="Password"]').click(); await page.locator('input[name="Password"]').press('Control+a'); await page.locator('input[name="Password"]').fill('admin'); await page.locator('text=Log in').click(); await page.locator('#nopSideBarPusher i').click(); await page.locator('text=Logout').click(); await page.waitForURL('https://admin-demo.nopcommerce.com/login?ReturnUrl=%2Fadmin%2F'); await page.close(); }) #playwright #testing ▬▬ RAGHAV PAL ▬▬ UDEMY ► https://www.udemy.com/user/raghav-pal-3/ GITHUB PROJECTS ► https://github.com/Raghav-Pal/ CORPORATE TRAINING ► https://automationstepbystep.com/corporate-training/ STORIES BY RAGHAV ► https://automationstepbystep.com/stories/ ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you You can support my mission for education by sharing this knowledge and helping as many people as you can If my work has helped you, consider helping any animal near you, in any way you can NEVER STOP LEARNING Raghav Pal

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere