In this blog, we learn to take screenshots using Selenium. While running the automation script, it is necessary to take screenshots for failed test cases. As a result, we can refer to screenshots for future validation. Taking Screenshots using Selenium There are two ways to take screenshots. Using in-built TakesScreenshot class of Selenium WebDriver. ViaRead More
Learn Selenium
This part contains basic tutorials to start with Selenium.
Selenium-9 || Understanding WebDriver API.
Selenium WebDriver is a powerful tool in selenium package. It helps to identify the component on a web browser, perform an action, comparing the result and generating the reports. Before starting this chapter I would suggest please go through with Chapter 1 of Selenium section: WebDriver API Basically, API stands for Application Program Interface. These resourcesRead More
Selenium-8 || Implementing Wait(s) in Selenium.
Wait(s) plays an important role in the Selenium while test execution. Implementing Wait(s) in Selenium is a very interesting and logical concept. Need of Wait(s) in Selenium If we take general definition of wait, it pauses a process for a predefined time or a condition. Types of Waits Selenium supports three types of Wait(s) asRead More
Selenium-7 || Let’s learn to create complex XPath.
There are few scenarios where we get stuck and unable to locate web element on the page. In this blog I will discuss such scenarios. Here I have taken example of a simple Calendar widget and will learn how to get few type of dates as mentioned below: Print Current date. Use following-sibling to getRead More
Selenium-6 || XPath is the best way to locate web elements.
XPath stands for XML Path, which helps us to locate any web element using its XML Path or XPath. In the previous lesson we have learnt many ways to locate any web element like HTML Tag id, name, class name etc. When we are unable to identify using any of the mentioned way then weRead More
Selenium-5 || Locating web elements using various type of Locators.
Locators are the unique identity of the web elements, using which Selenium can identify and search the element on a web page to perform some specific action. As we all know a web page is a structured code of Html. So, these locators are actually properties of the HTML TAGS and its attributes. Types ofRead More
Selenium-4 || Handling multiple web browsers.
As we all know, that using the Selenium web drivers user can handle multiple web browsers to execute test cases on different browsers. This helps us to execute the same set of script for any application on cross-browser platforms. Multiple Web Browsers Understand above image step-by-step: Write a script to perform an actionRead More
Selenium-3 || First program using Selenium Web Driver.
Selenium web driver can be used using the Eclipse environment. Java is the most used programming language for the same. Let’s learn step by step to create the first program in Selenium. Installation of Eclipse, JDK/JRE and Selenium Web Driver: Download zip folder of the latest version of Eclipse IDE from http://www.eclipse.org/downloads/ Download the latestRead More
Selenium-2 || Let’s learn Selenium IDE.
Selenium IDE stands for Selenium Integrated Development Environment, which helps a user to record and play the steps on a web page for making their work easy and handy. It is an extension that can be installed and used on chrome and firefox browser. Selenium IDE: It stands for Selenium Integrated Development Environment. Easy toRead More
Selenium-1 || Understanding Selenium and Selenium WebDriver.
Selenium is a set of tools to automate the web applications. Selenium WebDriver is a powerful tool in selenium package. It helps to identify the component on a web browser, perform an action, comparing the result and generating the reports. Selenium Packages: Selenium is basically a package of n number of tools and utilities toRead More