Skip to content

Latest commit

 

History

History

xpath

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Example script: get XPath of elements fetched with AgentQL

This example demonstrates how to get XPath of an element that was fetched with AgentQL.

Run the script

npm install playwright-dompath
  • Save this JavaScript file locally as main.js
  • Run the following command from the project's folder:
node main.js

Play with the query

Install the AgentQL Debugger Chrome extension to play with the AgentQL query. Learn more about the AgentQL query language