Exclude Attributes/Classes


Sometimes, while capturing elements from your website, you would want to exclude certain attributes/classes. The reason could be that they could be changed soon, whereas you want your elements to be stable and accurate. In this document, we will discuss how to exclude certain attributes/classes while recording test steps via the Testsigma test recorder.


Prerequisites

  1. You should have Chrome Extension Installed.
  2. You should know how to create test steps using recorder.

Steps to follow:

  1. Start recording a test case via the Testsigma test step recorder.
  2. On the Testsigma test step recorder, hover over the settings button on the top right, also highlighted in the screenshot below:

    Settings button highlighted for excluding attributes and classes in Testsigma recorder

  3. On hover, menu options would appear (as also shown in the screenshot below) - click on the option ‘Excluded Attributes’.

    Excluded attributes menu in Testsigma recorder

  4. On the excluded attributes and classes UI that appears, you can add the attributes and classes that you want to be excluded while test step recording:

    Excluded attributes UI in testsigma recorder UI