Playwright TypeScript - TypeScript vs JavaScript in Playwright

Playwright TypeScript - TypeScript vs JavaScript in Playwright

Automation Step by Step via YouTube Direct link

Step 10 - TS + ESLint > Promise Safety: await page.goto'https://google.com';

11 of 12

11 of 12

Step 10 - TS + ESLint > Promise Safety: await page.goto'https://google.com';

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Playwright TypeScript - TypeScript vs JavaScript in Playwright

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Introduction and Topics
  2. 2 Step 1 - Create a login test in a file login.spec.ts Also create login.spec.js for comparison
  3. 3 Step 2 - Invalid Method on Page: page.gotourl'https://google.com';
  4. 4 Step 3 - Random Method Injection: page.randomemethod;
  5. 5 Step 4 - Typed Locator Immutability: const username: Locator = page.locator'#user-name';
  6. 6 Step 5 - Wrong Argument Type: page.locator123;
  7. 7 Step 6 - Method Parameter Type Safety: username.fill'standard_user';
  8. 8 Step 7 - Method Availability Based on Type: await loginButton.click;
  9. 9 Step 8 - Page vs Locator Method Separation: page.goto'https://google.com';
  10. 10 Step 9 - Smart Assertions Type-aware expect: await expectpage.toHaveURL'...';
  11. 11 Step 10 - TS + ESLint > Promise Safety: await page.goto'https://google.com';
  12. 12 QUIZ - https://forms.gle/yHBRjeNAS8paNkJK8

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.