# How to Use XPath in ZeroWork (advanced)

As mentioned previously, ZeroWork supports both CSS and XPath selectors. In this documentation, we are mostly focusing on CSS selectors only, as they are more beginner- and intermediate-friendly. We expect more advanced users to be already familiar with how to use XPath.

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

<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&#x26;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: [#how-to-use-loop-index-syntax-to-save-lists-of-public-data](https://docs.zerowork.io/using-building-blocks/start-repeat/standard-loop#how-to-use-loop-index-syntax-to-save-lists-of-public-data "mention"). 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&#x26;token=69090080-73e6-49ac-af4f-5bbc12a087c8" alt=""><figcaption></figcaption></figure>
