ScriptlessAutomation
  • 👋Welcome to Scriptless Automation
  • Discover More About Automation
    • ⚙️Automation platform intro
    • 💡Advantages of Scriptless Automation
    • 🚀Release Notes
      • 📖Open Code
      • 📕License Code
  • Product tools
    • 📪Pre-request Tools
    • 🔧Project Dependencies
  • Automation Architecture
    • 🎨Flow diagram
  • Get Started
    • 🛠️Start with Automation
    • 📖Open Code Automation
      • 🌏Web Automation
      • ↔️API Automation
    • 🏢Maven Configuration
    • 🗜️Setting Up Maven Project in IntelliJ IDEA
    • 🎛️Scriptless Config
      • 🕸️BrowserConfiguration
        • chrome.properties
      • 👥CommunicationConfiguration
        • SlackConfiguration.properties
      • 📧MailConfiguration
        • gmailCredentials.properties
      • 🛂ReportConfiguration
        • extentReportConfiguration.properties
      • 🕵️TestManagementConfiguration
        • testRail.properties
        • zephyrscale.properties
        • testiny.properties
      • ⚙️testNgConfiguration.properties
    • 🍱TestData Configuration
    • 👨‍💼Gherkin Language and Scriptless Automation Framework
  • Automation Import Notes
    • 🎨Points to Remember
  • Automation Platforms
    • 👾ScriptlessApi Automation
      • 🖊️Introduction
      • 🗜️Api Automation Setup
      • 🔃Supported API Request Types
      • 🪧API Automation Template
      • 📚Example of API Requests
        • ⬇️GET
        • ↕️POST
        • ⤵️PUT
        • ❌DELETE
      • 🎯API Response Validation
      • 👨‍👦API Dependent TestCase
      • 📝Store API Variables
      • 📔API with JSON body
      • 🙋‍♂️Api Wait
      • 🗜️API Schema Validation
      • 🏗️API Tailor-Made coding
      • 👨‍🦯API Support Generator
      • ↘️Api Response Store Objects
      • ✍️API Test Report
      • 🚃Api Response Type Validation
    • 🌐ScriptlessWeb Automation
      • 🖊️Introduction
      • 🗜️Web Automation Setup
      • 🪧Web Automation Template
      • 🧮page_object_locators
      • 📜Web Automation Key Phrases
        • 📃PAGE_NAME
        • ⌛WAIT_TYPE
        • 📜SCROLL_TYPE
        • 👨‍💼ELEMENT_NAME
        • 🏎️ACTIONS
        • ⌨️SEND_KEYS
        • ✔️VALIDATION
        • ✅VALIDATION_TYPE
      • 👨‍👦Web Dependent Test Case
      • 🐒MOCK
      • 🛂AutomationAsserts
      • 🏗️Web Tailor-Made coding
      • 📝Store Web Variables
      • 🤼‍♀️Web & API integration
      • 🖇️Dynamic Strings
      • 🗣️ReadFile Annotation for Custom Code
      • 🖼️Page_Comparison
      • 👨‍💼Gherkin Template for Web Automation
    • 📱Mobile Automation
  • 🪶Automation features
    • 🌲Environment and System Variables
    • 🗝️KeyInitializers
      • Types of KeyInitializers
    • ✍️Reporting
      • Dashboard
      • Category
      • Tests
        • Screenshot Section
    • 👯Parallel Testing
    • 🏗️Tailor-Made Coding
  • ⏩Automation Demo
Powered by GitBook
On this page

Was this helpful?

  1. Automation Platforms
  2. ScriptlessWeb Automation
  3. Web Automation Key Phrases

VALIDATION_TYPE

VALIDATION_TYPE is a pivotal element in the Scriptless Automation Framework, directing how a web element's state or property is to be validated during test execution. This field categorizes the kind of validation to be performed, working in conjunction with the VALIDATION field to ascertain the accuracy of web elements against predefined criteria.

Types of VALIDATION_TYPE

Each VALIDATION_TYPE serves a specific purpose in the validation process:

  1. EQUAL_IGNORE: Validates that the text of the web element matches the specified value in the VALIDATION field, disregarding case sensitivity.

  2. IS_DISPLAY: Checks whether the web element is currently visible or displayed on the web page. It does not require a corresponding value in the VALIDATION field.

  3. IS_BUTTON_ENABLE: Assesses if a button element is enabled, implying it is interactive and can be clicked.

  4. IS_BUTTON_DISABLE: Verifies that a button element is disabled, meaning it should not be interactive or clickable.

  5. ATTRIBUTE_VALUE_PRESENT: Ensures that the web element contains a value. This is particularly useful for checking if elements have certain properties or states defined.

  6. ATTRIBUTE_VALUE_NOT_PRESENT: Opposite to the above, this checks that the web element does not hold any value.

  7. ATTRIBUTE_EQUAL_IGNORE: Similar to EQUAL_IGNORE, it compares the value of a specified attribute of the web element to the value in the VALIDATION field, ignoring case differences.

  8. CUSTOM: Allows the use of custom validation methods. The specifics of how this type interacts with the VALIDATION field depend on the custom logic implemented.

  9. NONE: Indicates that no validation is to be performed for the web element. In this case, the VALIDATION field is not applicable.

  10. CSS_PROPERTY: Validating CSS property types, enabling users to ensure UI components match expected CSS values accurately.

  11. PAGE_COMPARISON:Validate the screenshot taken from the driver against the expected screenshot.

  12. IS_NOT_DISPLAY: Ensure that an element is not displayed on the page.

  13. IS_ELEMENT_PRESENT: Verify the presence of an element in the DOM.

  14. IS_ELEMENT_NOT_PRESENT: Ensure that an element is not present in the DOM.

Usage in Test Execution

  • The choice of VALIDATION_TYPE guides the testing framework on what kind of assertion or check to perform on a web element.

  • It enhances test scripts' flexibility, allowing for a broad spectrum of validation scenarios without writing complex code.

Example

  • Setting VALIDATION_TYPE to IS_DISPLAY instructs the framework to check if a particular web element is visible on the webpage, without needing to compare it to any specific value.

  • When VALIDATION_TYPE is EQUAL_IGNORE, the framework compares the text of the web element with the expected value provided in the VALIDATION field, in a case-insensitive manner.

The VALIDATION_TYPE field in the Scriptless Automation Framework simplifies the process of defining various validation conditions, contributing to more robust and reliable automated testing.

Points marked with green background are part of license code.

PreviousVALIDATIONNextWeb Dependent Test Case

Last updated 11 months ago

Was this helpful?

🌐
📜
✅