Skip to content

Locators

Build tests

Use locators to give your steps stable element references. In AppraiseJS, the best path is usually route-aware capture through the Chromium picker, not typing selectors blind.

Job to be done: capture a selector that stays useful laterBest for: page-level UI interactionsRelated workflow: locator groups and test steps
#direction: right #stroke: #64748b #fill: #f8fafc [Locator Group] -> [Locator] [Locator] -> [Template Step Parameter] [Template Step Parameter] -> [Test Case] Locator Group Locator Template Step Parameter Test Case

The locator creator matters because it sits between page discovery and durable test authoring. A good locator makes the case editor faster and the rerun more reliable.

UI path

Locators Create Launch Chromium Picker Finalize Locator Save

Use this path when you want reusable locators prepared before test case creation.

  1. Open Locators -> Create.
  2. Choose whether to launch from a saved environment or a direct URL.
  3. Start the Chromium picker and navigate to the target page state if needed.
  4. Click Start picking, select the element, review the proposed selector, then confirm it.
  5. Review the autofilled locator name, selector value, route, and locator group suggestion.
  6. Save the locator to an existing group or create a new route-aware group before saving.

Below is a screenshot of the locator creator in action.

Create Locator screen

Below is a screenshot of the locator picker in action.

Locator picker interaction

Here is the complete flow of creating a locator.

You can also create needed locators directly from the node addition sidebar while building a test case. This is the smoother path when you are already in the test case creation flow and discover that an input, click, or assertion step needs a new element reference.

  1. Open the test case form.
  2. Add a node from the flow builder.
  3. Choose the step type that needs an element.
  4. Use the node addition sidebar to create a locator or select an existing one.
  5. Save the node and continue building the flow.
  • Group: Login Page
  • Route: /login
  • Locators: emailInput, passwordInput, submitButton, welcomeBanner
  • The locator name is readable and specific.
  • The selector is stable enough to survive layout changes.
  • The locator group route matches the page where the step actually uses the selector.
  • Locators created during test case creation are named clearly enough to reuse later.

Continue to Test Cases to see how locator references become executable steps.