Record Single Element Using Recorder


In an Android project in Testsigma, you can selectively capture elements one at a time using the Testsigma recorder. This article discusses how to capture single element using recorder.


Prerequisites


Steps to Record an Element

  1. From the left navigation bar, go to Create Tests > Elements. Elements
  2. Click on Record. Record
  3. On Record Elements overlay, select Test Lab, Test Machine, Upload App Source and click on Record. Record
  4. Wait for the app to load fully.
  5. Once the app is loaded, click on element you want to capture.
  6. On the Create Element section, validate the Name, Screen Name, Element Type, and the Value. Create Element
  7. Click on Create. Create
NOTE:
  • To update an element, hover over the recorded element and click on the edit icon. Change the element details manually and click Update to finalize the changes. Update Element
  • You can also update the element from the run results by navigating to Ad-Hoc Runs > Test Step > Element > Edit Element.
  1. The element will be saved in the elements list. Saved
  2. Stop the recorder to close the session.

Creating an Element While Creating Test Case

Alternatively, you can also create the element while creating test case by following the steps below.

  1. Hover over the element on the test step and click on Create Element from the dropdown. Create Element
  2. On Create Element overlay, enter Name, Screen Name, select the Element Type and click on Create Element. Create
NOTE:
  • To update an element from test steps, hover over the element and click on the edit icon. Change the element details manually and click Update to finalize the changes. Update 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. Reuse
  5. Click on Update Step to finalize the change. Update Step
NOTE:

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