Playwright new Locators | GetBy | Version 1.27 | Playwright Tutorial - Part 83
Locators With these new APIs writing locators is a joy: Chapters: 0:00 Intro to V 1.27 2:23 page.getByText(text[, options]) to locate by text content 3:25 page.getByLabel(text[, options]) to locate a form control by associated label's text 5:07 page.getByPlaceholder(text[, options]) to locate an input by placeholder 6:21 page.getByRole(role[, options]) to locate by ARIA role, ARIA attributes and accessible name 7:56 page.getByAltText(text[, options]) to locate an element, usually image, by its text alternative 9:00 Checking reports 10:19 Checking new locators with trace 12:41 Other updates 13:40 outro Reference: https://playwright.dev/docs/release-notes#version-127 --------------------------------------------------------------------- 😊Just in case you want to support me, 🎁https://www.buymeacoffee.com/letcode --------------------------Thank you--------------------------- Thanks for watching, if you like the video, give it a thumbs up 👆. Sharing is caring, kindly share the video with your friends and colleagues. Don't forget to subscribe and hit the bell 🔔 notification. --------------------------------SOCIAL-------------------------------- 📝Test Practice Site: https://letcode.in/ 👥Facebook Group: https://www.facebook.com/groups/letcode 🐦Discord: https://discord.gg/Tvwac8HgQD 📸Instagram: https://www.instagram.com/letcode.in/ 🎓 LinkedIn: https://www.linkedin.com/in/ortoni/ ⛳️ XPath Extension: https://bit.ly/2T5EUCu Join our WhatsApp group (Only for Channel Members) http://bit.ly/3cSPCpm #letcode #playwright
Download
0 formatsNo download links available.