Validating Element Visibility with verify text Action

Modified on Wed, 03 Apr 2024 at 06:31 PM

Overview 

The element visibility validation through the 'verify text' action allows you to check whether your UI element exists and is visible on the page (web) and screen (Mobile App or desktop application).  This validation verifies that the element exists and is visible but does not check its specific content. Even if your element comprises a variable image or text, validation will still work.


Note: When using the verify text action on a mobile screen using the Python Appium framework, if the text is available in the element, it will be printed in the execution report. 



Supported UI elements

The following tables lists supported UI elements for Verify Text action:

UI Element DescriptionExample
A text box is an input area where you can type or enter text.An example for input text box for  entering a password.
A button indicates an action upon touch and is labeled using text.An example of a clickable button indicating the close action for a pop-up window.
A label is a textual tag or visual identifier providing information  about a particular section of the interface associated with a UI element.An example of textual tag for an associated UI element in a Message box.
A link, whether a visual element or text, navigates you to another location within the same webpage, to a different webpage, or to various types of resources when clicked.An example of a link that navigates you to a particular website landing page, allowing you to access various products.


Adding Verify Text Action

To add validation for element visibility in a Web, Desktop and M-App automation process, perform the following using an example scenario.

You can add Verify Text Action in the following ways: 


Node Configuration Process

In the Node configuration process, you can add the Verify Text action by following the procedure described in this article 'Adding or Modifying Default Actions.'


FollowMe Feature

When recording a scenario using the Follow Me feature, you can add Verify Text action. For more information, see  'Adding Default Action Step in FollowMe Feature.'


Edit Scenarios Functionality

Upon recording a scenario using Follow Me feature, you can add the Verify Text action in the Edit Scenarios functionality. For more information, see 'Adding Default Action Step in Edit Scenarios Functionality.'


Example Scenario: 

  1. Open your preferred browser and enter www.Myntra.com into the address bar.
  2. Navigate to Myntra Login page.
  3. Identify the Login button element.
  4. Perform a verify text action to confirm that the displayed text on the login button is Login.







Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article