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.

NOTE:

This guide is intended for Advanced Users. Familiarity with Elements, XPath and CSS Selectors is recommended for this guide.


Prerequisites

  • You should know how to create a project in Testsigma.
  • A Web app to test.

Steps to Create an Element

  1. Navigate to Create Tests > Elements. Elements
  2. Click on Create. 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.
NOTE:

You can also create elements using the recorder by clicking on Record Element from the Create Element page. Recorder


Creating Element While Adding Test Steps

  1. Navigate to Create Tests > Test Cases, click on Create 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.


Updating an Element

  1. Navigate to Create Tests > Elements. Elements
  2. Hover over the element you want to update and click on the kebab menu 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, select the Element Type. Update Element Details
  4. Click on Update. Update Element

Updating Multiple Elements

  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