Chrome allows you to search for elements using CSS selectors or XPath.
Puppeteer uses
- Type selector
- CSS Selector
- Class selector
- ID selector
- Attribute selector
xpath selector
Find the anchor within the td | td a |
XPath
Find element with the text | //p[text()='Asset'] |
Find parent of the element with the text | //p[text()='Asset']/.. |
No comments:
Post a Comment