Wednesday 10 January 2024

CSS Selector syntax in Chrome


Chrome allows you to search for elements using CSS selectors or XPath.

Puppeteer uses 

  1. Type selector 
  2. CSS Selector
  3. Class selector 
  4. ID selector 
  5. Attribute selector 

xpath selector

Find the anchor within the tdtd a


Find element with the text//p[text()='Asset']
Find parent of the element with the text//p[text()='Asset']/..

No comments:

Post a Comment