This example demonstrates how to get XPath of an element that was fetched with AgentQL.
- Install AgentQL SDK
- Install Playwright Dompath with the following command:
npm install playwright-dompath
- Save this JavaScript file locally as main.js
- Run the following command from the project's folder:
node main.js
Install the AgentQL Debugger Chrome extension to play with the AgentQL query. Learn more about the AgentQL query language