# Creating Elements

Elements in DoesQA allow you to manage and reuse selectors for interacting with and locating elements on the web page during test execution. Creating and maintaining elements centrally makes your tests more maintainable and robust.

### Creating Elements

There are two ways to create elements in DoesQA:

1. **Left-Hand Menu**: Navigate to the Elements section in the left-hand menu and click the "New" button to create a new element.
2. **Node Edit Modal**: While editing a node in a test, click the "+" button to create a new element on-the-fly.

### Different Selector Types

{% content-ref url="/pages/SYczKhdsyBrSmxF0RsXp" %}
[CSS](/elements/selector-types/css.md)
{% endcontent-ref %}

{% content-ref url="/pages/0tPtG9Fnlg5eX8rsaV9h" %}
[XPath](/elements/selector-types/xpath.md)
{% endcontent-ref %}

{% content-ref url="/pages/iKZexOOZ8da03iKFlLNm" %}
[Visible Text](/elements/selector-types/visible-text.md)
{% endcontent-ref %}

{% content-ref url="/pages/mOHhp92CL8YBejOx1HgH" %}
[Test ID](/elements/selector-types/test-id.md)
{% endcontent-ref %}

When creating an element, select the appropriate type and provide a valid expression or value based on the selected type. This will ensure that DoesQA can effectively locate and interact with the element during test execution. Need some help defining locators? Book a session with our QA experts and we can assist.


---

# 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.does.qa/elements/creating-elements.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.
