Record Single Element Using Recorder

Record Single Element Using Recorder


You can also selectively capture single element of a web application using Testsigma recorder. This article discusses how to capture a single element using the Testsigma test recorder.


Prerequisites

Before you begin, ensure that the Testsigma Chrome Extension is installed and a web application is available for testing.


Steps to Capture an Element

  1. From the left navigation bar, go to Create Tests > Elements. Elements
  2. Click on Record on the top right corner. Record
  3. This will open a new tab. Enter the URL from which you want to capture the elements. The Testsigma test recorder will appear and will be ready to start recording. Here, we entered the URL for Simply Travel Web. New Window
  4. Hover over the element you want to capture and make sure that it is highlighted in green (for example, here we are capturing the Login or Signup field): Element
  5. Click on the hovered element and wait for the element to appear in the recorder. Element in Recorder
  6. Once you have captured the necessary element, click on Stop. Stop
  7. You'll be redirected to the Elements page, where you can see all recorded elements.
NOTE:

While recording elements, the recorder will also capture the page image, highlighting the respective element. This provides visual context along with the element details.

Here’s a quick GIF demonstrating how to record multiple elements for a web application. Record Multiple Element


Steps to Update an Element

  1. From the left navigation bar, select Create Tests > Elements. Elements
  2. From the Elements list page. This will open the Element Details overlay. Element Details
  3. In the Element Details overlay, click Edit. This will open the Update Element overlay. Update Details Overlay
  4. In the Update Element overlay, manually update the details you want to change, and click Update Element. Update Element Overlay

💡 Additional Info:

You can update the following fields:

  • Name
  • Screen Name
  • Element Type
  • Value


  1. You can also check the highlighted element in the Element Image section in the same overlay for your reference. Element Image
NOTE:

You can also update the element from the run results by navigating to Ad-Hoc Runs > Test Step > Element > Edit Element.


Creating an Element While Creating Test Case

  1. From the left navigation bar, go to Create Tests > Test Cases, create a new test case or select an existing test case. Test Cases
  2. Click on element in any test step and choose Create Element from the dropdown. This will open the Create Element overlay. Create Element
  3. Click on Record Element and follow the steps 3-8, mentioned in steps to create an element from the elements page to create an element. Record Element

Reusing Elements Recorded

  1. Create a test case in which you will be reusing your pre-recorded elements.
  2. Start recording test steps for the test case.
  3. Hover over the element on the test step where you want to reuse the saved element and click on Change Element. Change Element
  4. On Elements overlay, select the element you want to reuse. Select Element
NOTE:

You can also reuse the element by following the same steps while creating a test case manually.