links:: TAU Course Playwright with JavaScript by Ixchel Meza MOC

Chapter 3.2.1 - Debugging Selectors

Chapter 3.2.1 - Debugging Selectors

npx playwright-cli open 
Need to install the following packages:
Ok to proceed? (y) y
playwright-cli has moved to playwright. Use npx playwright instead.
npx playwright open 

In console type

playwright.$('#js-link-box-en > strong')

playwright.$$(selector) - Same as playwright.$, but returns all matching elements

playwright.inspect('#js-link-box-en > strong Reveal element in the Elements panel (if DevTools of the respective browser supports it).