> 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-build-custom-selectors/check-if-selector-is-correct-and-unique.md).

# Check if Selector Is Correct and Unique

Here is how you can check whether a selector is correct and unique before you run your TaskBot.

Click on the *Console* tab inside your *Inspect* mode.&#x20;

![](/files/SC09mYrwCZ3P9jkqoWoJ)

Now enter the following command directly on the console:

<mark style="background-color:yellow;">document.querySelectorAll("PASTE YOUR SELECTOR HERE")</mark>

In the example of Wikipedia's search button, it can be, for example, this selector (but you can use any other from the list you saw in the previous chapter [One Element Can Have Many Selector Expressions](/using-zerowork/using-selectors/how-to-build-custom-selectors/one-element-can-have-many-selector-expressions.md)):

<mark style="background-color:yellow;">document.querySelectorAll("button\[class\*='button']\[type='submit']")</mark>

This is what it looks like in action:

![](/files/CDIOpQIoYXS8b5gNYKj0)

Once you hit *Enter*, you will see that there is an element shown:

![](/files/LuhQ9TxpK4eMytkvlu0I)

Once you expand the shown element and hover over it, you will see the button highlighted on the left side that is identified by that selector.

![](/files/UrqlKs0qEtqEjOJj7VUF)

If your selector is not unique enough, the result will show multiple selectors. This means you need to get back to work and build a more unique selector. **Exception**: Unless you are building a selector for a list (such as list of profiles, list of pages, etc.) - in this case keep reading this guide and be sure to pay attention in the section[Lists: Incremental CSS Selectors](/using-zerowork/using-selectors/how-to-build-custom-selectors/lists-incremental-css-selectors.md).

If the result is not showing anything, this means your selector is not working out or you have a typo inside it (for example, you used double quotes instead of single quotes). You need to try again, adjust it or build another one.

When you build your own selectors, always first check them via *document.querySelectorAll* directly on the website. This way you can avoid running your TaskBot every time you want to check validity of your custom built selector. It will save you a lot of time.

{% hint style="warning" %}
Note that you cannot check correctness of text= (see [Use Element's Text](/using-zerowork/using-selectors/use-elements-text.md)) with *document.querySelectorAll* because this method is unique to ZeroWork.
{% endhint %}

### **Video Tutorial: Use document.querySelectorAll to Check Selector's Correctness and Uniqueness**

{% embed url="<https://youtu.be/hHAEaaxHEUI>" %}
