# Simple Target

Targets are basically identifiers associated with locators (CSS selector or XPath) that we can refer in the tests

## Adding Target with CSS Selector

![Adding Target with CSS Selector](https://3461068122-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdyKJ-zzeS2hB7DF04J%2F-LuI8L7QQl4VPa5sLOZ8%2F-LuI8VAJpKSIlL5cbXrI%2Fsimple-target.gif?alt=media\&token=5ae42edd-8595-420b-bab5-edc8cf8a6498)

{% hint style="info" %}
When you change name of an existing target, the new name will be reflected in all the test cases referring to it
{% endhint %}

## Adding Target with XPath

![Adding Target with XPath](https://3461068122-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdyKJ-zzeS2hB7DF04J%2F-LuI8L7QQl4VPa5sLOZ8%2F-LuI8jA3uVTcMGEDANPx%2Fsimple-target-xpath.gif?alt=media\&token=2178bdb6-081b-4c82-94a6-3d5eba15dfc3)

## Editing Targets as CSV

You can edit targets as CSV. After clicking on **Edit as CSV** button you get a modal window where existing targets presented as lines of target/locator pairs separated with comma.

![ Editing Targets as CSV](https://3461068122-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdyKJ-zzeS2hB7DF04J%2F-LuI8L7QQl4VPa5sLOZ8%2F-LuI9m5utyTinb53k6LW%2Ftarget-as-csv.gif?alt=media\&token=6d31c78a-9bab-4edc-a5eb-a81d17cf9ce8)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.puppetry.app/target/simple-target.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
