Google+

15. Validating elements using Selenium IDE



Going forward I'm not going to explain Selenium IDE in depth as it is not required for any tester to learn it completely. The topics that I'm going to explain in the upcoming posts will be enough for learning Selenium IDE. Rather we can concentrate much on Selenium 2 which requires in depth knowledge. But without learning the basics of Selenium IDE we cant go forward, as Selenium IDE basics are very important to learn:

There are two mechanism for validating elements that are on the application under test using Selenium IDE. In order to understand what actually the validation means, please go through the below examples first:

Examples of Validations:

  • Example1: To check whether the UI element exists or not on the Application. If the automation tool finds that the element is found on the application it results PASS else it will result FAIL as output. (Going forward I'm going to perform this kind of validations using Selenium IDE)
  • Example2: To check whether the hidden UI element is really hidden. If the automation tool finds that this element is not hidden it results FAIL else it will result PASS.
Two mechanism for validating elements in Selenium IDE:
  1. Assert - This allows the test to check whether the element is on the page. If it is not available then the test will stop on the step that failed and wont execute the remaining steps.
  2. Verify - This allows the test to check whether the element is on the page. If it is not available then the test will fail the step and carry on execution of the remaining steps.




Please comment below to feedback or ask questions.

How to validate elements using Selenium IDE's Assert mechanism is explained in the next posts.




No comments:

Followers :)

Blog Index