Gain a Splash of New Skills - Coursera+ Annual Just ₹7,999
Our career paths help you become job ready faster
Overview
Syllabus
Introduction and Topics
Step 1 - Create a login test in a file login.spec.ts Also create login.spec.js for comparison
Step 2 - Invalid Method on Page: page.gotourl'https://google.com';
Step 3 - Random Method Injection: page.randomemethod;
Step 4 - Typed Locator Immutability: const username: Locator = page.locator'#user-name';
Step 5 - Wrong Argument Type: page.locator123;
Step 6 - Method Parameter Type Safety: username.fill'standard_user';
Step 7 - Method Availability Based on Type: await loginButton.click;
Step 8 - Page vs Locator Method Separation: page.goto'https://google.com';
Step 9 - Smart Assertions Type-aware expect: await expectpage.toHaveURL'...';
Step 10 - TS + ESLint > Promise Safety: await page.goto'https://google.com';
QUIZ - https://forms.gle/yHBRjeNAS8paNkJK8
Taught by
Automation Step by Step