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