DoesQA
WebsiteLogin
  • Welcome to DoesQA
  • Getting Started
    • Creating your first test
    • Running your first test
  • Test Steps
    • Starter
      • Open
    • Action
      • Touch
      • Double Tap
      • Drag and Drop
      • Clear
      • File
      • Select Option
      • Send Keys
      • Set MFA
      • Open Plugin
      • Scroll Into View
      • Scroll To Edge
      • Hover
    • Browser
      • Go To Absolute URL
      • Go To Relative Path
      • Reload
      • Back
      • Forward
      • Open File
    • Integration
      • SFTP List
    • Node Groups
    • Comparison Types
    • Nodes
      • Starters
      • Actions
      • Checks
      • Change Detection
      • Validators
      • Data
      • Integrations
      • Utilities
      • Runner
  • Elements
    • Creating Elements
    • CSS
    • XPath
    • Visible Text
    • Test ID
  • Values
    • Values (Value Store)
    • Creating Values
    • Dynamic Values
  • Configuration
    • Whitelisting IPs
    • CI / CD
    • Notifications
      • Webhook
      • Email
      • Slack
    • MFA
  • Guides
    • Test Tagging
Powered by GitBook
On this page
  • Creating Elements
  • Element Types
  1. Elements

Creating Elements

Definitions of your Elements by CSS or XPath Selectors

Elements in DoesQA allow you to manage and reuse selectors for interacting with and locating elements on the web page during test execution. Creating and maintaining elements centrally makes your tests more maintainable and robust.

Creating Elements

There are two ways to create elements in DoesQA:

  1. Left-Hand Menu: Navigate to the Elements section in the left-hand menu and click the "New" button to create a new element.

  2. Node Edit Modal: While editing a node in a test, click the "+" button to create a new element on-the-fly.

Element Types

Elements in DoesQA can be of the following types:

  • CSS: Use CSS selectors to locate elements based on their styling properties and structure in the DOM.

  • XPath: Use XPath expressions to navigate and select elements within the XML or HTML document.

  • Visible Text: Locate elements based on the visible text they contain. This is matched without case sensitivity

  • Test ID: DoesQA searches for the following test-ids matching the given text:

'data-test'
'data-testid'
'data-test-id'
'data-qa'
'data-qa-id'
'data-at'
'data-at-id'
'data-dqa'
'data-dqa-id'
'data-trackable'
'data-dyn-controlname'
'data-dyn-role'
'data-site-id'

When creating an element, select the appropriate type and provide a valid expression or value based on the selected type. This will ensure that DoesQA can effectively locate and interact with the element during test execution. Need some help defining locators? Book a session with our QA experts and we can assist.

PreviousRunnerNextCSS

Last updated 7 hours ago