Selenium
Selenium with Cucumber (BDD Framework): Tutorial with Example
In this tutorial, you will learn how to integrate Cucumber with Selenium Webdriver. What is...
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
In this tutorial, you will learn how to integrate Cucumber with Selenium Webdriver. What is...
In this tutorial, we will see how to identify the following form elements Radio Button Check Box...
Selenium supports Python and thus can be utilized as Selenium WebDriver with Python for testing....
Before we look into anything else, let's first understand - Why do we need reporting? When we are...
What is Data Scraping using selenium? Selenium can be classified as the automation tool that...
What is Apache Ant? While creating a complete software product, one needs to take care different third...