Playwright Beginner Tutorial 7 | How To Find Web Objects

Automation Step by Step September 6, 2022
Video Thumbnail
Automation Step by Step Logo

Automation Step by Step

@raghavpal

About

Simple Basic Beginners Step-by-Step tutorials ❤️ I create videos on Automation, Testing, DevOps, CI and related tools, technologies and platform Raghav is a teacher and founder of AutomationStepByStep.com He was an Automation Architect and has led multiple teams of Automation and DevOps Engineers. For over a decade, Raghav witnessed, worked, and delivered multiple Automation Testing Projects and worked with some awesome people in this industry ► https://automationstepbystep.com/ Some topics covered: - Jenkins - JMeter - Selenium - Appium - Cypress - Playwright - Katalon Studio - API Testing - Postman - Docker - Kubernetes - Other DevOps topics Words from Raghav We often need someone to hold our hand and help us take the first few steps before we learn to walk and run. I am on a mission to spread education and make it available to anyone willing to learn Never Stop Learning Raghav All education here is FREE FOR ALL, FOREVER Share with as many people as you can in your lifetime

Video Description

ALL FREE COURSES ► https://automationstepbystep.com/ QUIZ ► https://forms.gle/HyJrbyQ1hvS9Zopv9 00:00 *Intro* What we are going to learn 01:11 *What are Selectors and Locators* Selectors are the strings/properties of the web objects Selectors are used to create Locators Selectors e.g. CSS, Class, Name, ID, Text, XPath … To find an object or element we use the syntax page.locator(selector[, options]) Locator is a class in Playwright library 01:43 *Google object locator example* 05:25 *How to find web objects with Playwright* How to find objects using XPath, CSS, Text, ID etc await page.goto('https://www.saucedemo.com/'); 10:25 *using any object property* await page.click('id=user-name') await page.locator('[id="user-name"]').click(); await page.locator('id=user-name').fill(Graham) // or await page.locator('[id="user-name"]').fill(Einstein) 15:49 *using CSS selector* await page.locator('#login-button').click() 20:18 *using XPath* await page.locator('xpath=//input[@name="login-button"]').click() await page.locator('//input[@name="login-button"]').click() 24:55 *using Text* await page.locator('text=LOGIN').click(); await page.locator('input:has-text("LOGIN")').click() 28:36 *Screenshot moment* 31:47 *How to find and record object locators using Playwright Inspector* 36:49 *Outro* References https://playwright.dev/docs/selectors https://playwright.dev/docs/api/class-locator #playwright #automation #testing ▬▬ ASK RAGHAV ► https://bit.ly/2CoJGWf JENKINS BEGINNER ► https://bit.ly/2MIn8EC JENKINSFILE ► https://bit.ly/3JSMSZ7 DOCKER ► https://bit.ly/2MInnzx KUBERNETES ► http://bit.ly/2MJIlMK SELENIUM BEGINNERS ► https://bit.ly/2MGRS8K SELENIUM JAVA FRAMEWORK ► https://bit.ly/2N9xvR6 SELENIUM PYTHON ► https://bit.ly/2oyMp5x SELENIUM TIPS ► https://bit.ly/2owxc50 SELENIUM BUILDER ► https://bit.ly/2MKNtlq SELENIUM 4 ► https://bit.ly/3AiJOlP KATALON STUDIO ► https://bit.ly/2wARFdi ROBOT FRAMEWORK with RIDE ► https://bit.ly/2Px6Ue9 ROBOT FRAMEWORK with Eclipse► http://bit.ly/2N8DZxb PROTRACTOR ► http://bit.ly/2KtqVkU ACCELQ ► https://bit.ly/3PlsAsh TEST PROJECT ► http://bit.ly/2DRNJYE CUCUMBER BDD ► https://bit.ly/3Cnno4z CYPRESS ► https://bit.ly/3PpEukM XPATH & WEB LOCATORS ► https://bit.ly/3PpEvoQ WEB SERVICES (API) ► https://bit.ly/2MGafL7 SOAPUI ► https://bit.ly/2MGahmd POSTMAN ► https://bit.ly/2wz8LrW POSTMAN 2022 ► https://bit.ly/3JWm4qX JMETER API TESTING ► https://bit.ly/3AgVPar GENERAL ► https://bit.ly/2PYdwmV KATALON STUDIO API ► https://bit.ly/2BwuCTN REST ASSURED ► https://bit.ly/3zUdhRD KARATE API ► https://bit.ly/3w3H5Ku API MOCKING ► https://bit.ly/3bYPsjS APPIUM ► https://bit.ly/2ZHFSGX MOBILE TESTING ►https://bit.ly/2PxpeUv JMETER BEGINNER ► https://bit.ly/2oBbtIU JMETER INTERMEDIATE ► https://bit.ly/2oziNVB JMETER ADVANCED ► https://bit.ly/2Q22Y6a JMETER TIPS & TRICKS ► https://bit.ly/2NOfWD2 PERFORMANCE TESTING ► https://bit.ly/2wEXbLS GATLING ► https://bit.ly/3QrWfkV ECLIPSE ► https://bit.ly/3AnRhQP INTELLIJ IDEA ► https://bit.ly/3AnyDZ8 Visual Studio Code ► https://bit.ly/2V15yvt JAVA BEGINNERS ► https://bit.ly/2PVUcXs JAVASCRIPT ► http://bit.ly/2KJDZ8o TYPESCRIPT ► https://bit.ly/3dvJBmz PYTHON ► http://bit.ly/2Z4iRye RUBY ► https://bit.ly/3JRRmzf MAVEN ► https://bit.ly/2NJdDRS GRADLE ► http://bit.ly/30l3h1B GIT & GITHUB ►https://bit.ly/2Q1pagY GITLAB ► http://bit.ly/2kQPGyQ BROWSERSTACK ► https://bit.ly/3w7kxZn SAUCELABS ► https://bit.ly/3w7kAo1 LAMBDATEST ► https://bit.ly/3C6TBwM JSON ► https://bit.ly/3w450tq XML ► https://bit.ly/3PqRneH VIRTUALIZATION ON WINDOWS ► http://bit.ly/2SItIL9 MOCK INTERVIEWS ► https://bit.ly/3QGwwVJ ▬▬ ▬▬ RAGHAV PAL ▬▬ GITHUB PROJECTS ► https://github.com/Raghav-Pal/ TRAINING ► https://automationstepbystep.com/corporate-training/ STORIES BY RAGHAV ► https://automationstepbystep.com/stories/ Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you You can support my mission for education by sharing this knowledge and helping as many people as you can If my work has helped you, consider helping any animal near you, in any way you can NEVER STOP LEARNING Raghav Pal

You May Also Like

No Recommendations Found

No products were found for the selected channel.