Skip to content
Testsigma DOCS

Elements

Create Element Manually


For dynamic websites such as E-commerce websites, the elements might be dynamic in nature i.e none of their attributes/properties remain constant across sessions. In such cases, there are chances for the elements created using Testsigma test Recorder to fail. In those specific cases, we might need to create some of the elements manually.


Prerequisites

Before you begin, ensure that you have referred to:


  1. From the left navigation bar, navigate to Create Tests > Elements. Elements

  2. Click on Create Element. Create Elemenet

  3. On Create Element overlay, you’ll see the following fields: Overlay

    • Name: Enter the name you want to give your element.
    • Screen Name: Mention the screen that your element resides on.
    • Element Type: There are 5 types of element types supported in Testsigma. This field is a drop-down list; you can select any of them: XPATH, ID, Name, Class Name, or Accessibility ID.
    • Enter Value: Enter the value corresponding to the Element Type you selected.
  4. Once you have added all the details, click on Create element. Click on Create

  5. The element will be saved in the elements list.


  1. Navigate to Create Tests > Test Cases, create a new test case or go to a pre-existing test case. Test Case

  2. Add a test step to the test case that contains an element.

  3. Hover over the element and select Create Element from the dropdown. Test Case

Follow the steps 3-5 from above section to create an element manually.


  1. Navigate to Create Tests > Elements. Elements

  2. Click the kebab menu next to an element to open a dropdown menu. Click on Edit from the dropdown. Edit

  3. On the Update Element overlay, you can update the Name, Screen Name, Element Type, and Element Value, and click Update. Update Element Details


  1. Navigate to Create Tests > Elements. Elements

  2. Click on Export to download an XLSX file containing all elements from the project. Export

  3. In the downloaded XLSX file, update the required fields for the required elements.

  4. Click on Import and choose the updated XLSX file for import. Import