# Target

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

## Adding Target with CSS Selector

![Target with CSS selector](https://2843146877-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdyKJ-zzeS2hB7DF04J%2F-LhtZWFFPzW4FBVWp5f-%2F-LhtZ_WxJTMas-5pOQi3%2Fadd-target-selector.gif?alt=media\&token=7198d427-0b35-4629-949b-2501aa0c015b)

{% 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

![Target with XPath](https://2843146877-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdyKJ-zzeS2hB7DF04J%2F-LhtZWFFPzW4FBVWp5f-%2F-LhtZdqpJJ8Xu8CeMOPq%2Fadd-target-xpath.gif?alt=media\&token=5cd0abc3-ab37-4f3d-8f49-4440df5f9a96)

## 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://2843146877-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdyKJ-zzeS2hB7DF04J%2F-Lht_VWo6A_vIAuaP7kU%2F-Lht_XghfbsQghZQirPo%2Fedit-csv.gif?alt=media\&token=a6582c3a-f1be-4089-8a8f-73a0f0f485c6)
