> For the complete documentation index, see [llms.txt](https://docs.zerowork.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zerowork.io/using-zerowork/using-selectors/how-to-use-xpath-in-zerowork.md).

# How to Use XPath in ZeroWork

ZeroWork supports both CSS and XPath selectors.

TaskBots will automatically recognize an XPath selector, when it starts with double slash //. Example below.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FOiBVuoQBy5XlpDq6NSOP%2FScreenshot%202024-03-04%20at%2014.20.34.png?alt=media&amp;token=760a615e-786f-4f6e-b23b-92cf64d13685" alt=""><figcaption></figcaption></figure>

Additionally, you can also explicitly state xpath like so: `xpath=//button`.

To iterate over a list of incrementing XPath selectors, use the same syntax with loop\_index, as explained here: [Standard Loop](/using-zerowork/using-building-blocks/start-repeat/standard-loop.md#how-to-use-loop-index-syntax-to-save-lists-of-public-data). Example below.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FithU23qphRZqWZE8xN9p%2FScreenshot%202024-03-04%20at%2014.22.06.png?alt=media&amp;token=69090080-73e6-49ac-af4f-5bbc12a087c8" alt=""><figcaption></figcaption></figure>
