In order to define a new locator, follow the steps below:
2. This will open up the New Locator tab as follows:
3. Advanced View of Locator tab will switch to editor mode where you can copy the content of the locator and then Grid View takes you back to the above view of Locator
4. Clicking on References for a given locator will display all of the test cases that contain that locator. The purpose is to ensure that the same locator is not created more than once, and that a locator is not mistakenly modified.
5. On the above tab, specify the Web Page which is an editable dropdown (best practice is to use application name followed by “.” and followed by page name, for example myApp.login, myApp.search, etc.), Type (another editable dropdown), and Alias for the locator you are defining along with only one unique identifier. This identifier can be the Web ID, Name, Partial Text, CSS selector, or XPath of the widget. If more than one of these values is specified, Subject7 Functional will use the first one that it finds based on the order mentioned above and will ignore the rest.