Udemy Playwright: Web Automation Testing From Zero to Hero: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
Udemy Playwright: Web Automation Testing From Zero to Hero (view source)
Revision as of 02:51, 24 May 2024
, 24 May 2024→Input Fields
| m (→Input Fields) | |||
| Line 366: | Line 366: | ||
| == Section 5: UI Components == | == Section 5: UI Components == | ||
| === Input Fields === | === Input Fields === | ||
|  <nowiki> | |||
|   await usingTheGridEmailInput.fill('test@test.com') | |||
|   await usingTheGridEmailInput.clear() | |||
|   await usingTheGridEmailInput.pressSequentially('test2@test.com', {delay:500}) | |||
|   // generic assertion | |||
|   const inputValue = await usingTheGridEmailInput.inputValue() | |||
|   expect(inputValue).toEqual('test2@test.com') | |||
|   // locator assertion | |||
|   await expect(usingTheGridEmailInput).toHaveValue('test2@test.com')</nowiki> | |||
| === Radio Buttons === | === Radio Buttons === | ||
| === Checkboxes === | === Checkboxes === | ||