Selenium
Selenium Grid Tutorial: Hub & Node (with Example)
What is Selenium Grid? Selenium Grid is a part of the Selenium Suite that specializes in running...
In this tutorial, we look at commands that will make your automation script more intelligent and complete.
We can use following two commands to verify the presence of an element:
The test script below verifies that the UserName text box is present within the Mercury Tours homepage while the First Name text box is not. The First Name text box is actually an element present in the Registration page of Mercury Tours, not in the homepage.
Remember that these commands are case-sensitive.
In the scenario above, "Atlanta to Las Vegas" was treated differently from "atlanta to Las Vegas" because the letter "A" of "Atlanta" was in uppercase on the first one while lowercase on the other. When the verifyTextPresent command was used on each of them, one passed while the other failed.
Selenium IDE indicates the position of an element by measuring (in pixels) how far it is from the left or top edge of the browser window.
These are commands that will wait for a new page to load before moving onto the next command.
Examples are
These are commands that wait for a specified condition to become true before proceeding to the next command (irrespective of loading of a new page). These commands are more appropriate to be used on AJAX-based dynamic websites that change values and elements without reloading the whole page. Examples include:
Consider the Facebook scenario below.
We can use a combination of "click" and "waitForTextPresent" to verify the presence of the text "Providing your birthday."
We cannot use clickAndWait because no page was loaded upon clicking on the "Why do I need to provide my birthday?" link. If we do, the test will fail
What is Selenium Grid? Selenium Grid is a part of the Selenium Suite that specializes in running...
TestNG is a Testing framework that covers different types of test designs like unit, functional,...
What is Selenium? Selenium is a free (open-source) automated testing framework used to validate web...
TestNG enables you to run test methods, test classes and test cases in parallel inside your...
What is AutoIt? AutoIt is a freeware scripting language designed for automating windows GUI and...
Project Summary This project will put you in an Online Corporate Test Environment. You will be...