selenium

Exceptions & How to Handle Exceptions in Selenium WebDriver

Reading Time: 3 minutes Hello Readers,In this blog, we will learn about Exceptions, how to handle exceptions in Selenium WebDriver, and common exceptions in selenium. Let’s Start. What is an Exception? Exception as the name suggests is an event that happens at the time of execution of a program. There may be several reasons behind the occurrence of exceptions that indicate the halt in the program flow.Exceptions are classified Continue Reading

Different types of locators in the selenium framework

Reading Time: 3 minutes What is Selenium? Selenium is one of the most widely used open-source automation tool. In addition, it supports automation across different browsers, platforms, and programming languages. It can be easily install on platforms such as Windows, Linux, Solaris, and also Macintosh. Likewise, it also supports OS (Operating System) for mobile applications like iOS, windows mobile, and android. What are Locators? A locator is a way Continue Reading

What is Robot Class and How to use it In Selenium Webdriver?

Reading Time: 3 minutes Hello People, As you know Robots help in managing all the activities like performing the task within the specified time, handling the mouse functions and the keyboard functions, and many more. What is Robot Class? To perform any action on a web element, we need a locator for the element. But Windows pop-ups don’t have any locators, as they are not part of the webpage, Continue Reading

How to handle Mouse Actions In Selenium?

Reading Time: 4 minutes Hello People, Nowadays Selenium has become the industry standard for implementing custom automated tests because of which it is considered the first go-to solution for every web application. Action Class in Selenium is a built-in feature provided by the selenium for handling keyboard and mouse events. This is something very interesting part of Selenium which is performed using the advanced user interaction API in the Continue Reading

How to Handle Multiple windows or tabs using selenium 4.0

Reading Time: 3 minutes Hello Everyone, in this blog we will learn how we can handle multiple Windows or tabs using selenium 4.0. Scenario for Handle Multiple Tabs or Windows Suppose we are on the website http://www.knoldus.com/home, when we enter this website in our selenium script it directs us to the Knoldus homepage, and at that time if we want to open a new page in a New Tab Continue Reading

How to capture a Screenshot of a Web Page, Section, and a Web Element in Selenium

Reading Time: 4 minutes Hello Everyone! In this blog, we will talk about one of the important features of Selenium for Automation Testing i.e How to Capture a Screenshot of a Web Page, Section, and Web Element through Selenium. So, let’s start. Why Screenshot is required in Automation Testing? Whenever a tester finds and reports a bug, that bug would not be taken seriously without supporting screenshots or even Continue Reading

How to run selenium test in different browser with docker

Reading Time: 4 minutes In the post, we have to elaborate how to run the Selenium test with Docker and execute both in Chrome and Firefox browsers. And We will also understand why we should run The Selenium tests in Docker? Basic Points There are few Basic Points that need to start the and install the docker Basic Point Of Docker : we can understand the high level of Continue Reading

Integrating Selenium with Concourse CI

Reading Time: 5 minutes Hi all, As we all may know, CI/CD has taken a very crucial place in the software development industry. Along with our development code, it is very important to integrate our automated tests with CI/CD as well. Hence, this blog aims to throw some insights on integrating our Selenium tests with concourse ci. So, let’s get started. What is Concourse CI? Just like any other Continue Reading

Selenium with Tesseract – Image Testing

Reading Time: 4 minutes Hi folks, In this blog, we will try to explore how to test the content of an image(basically, text in the image) using a combination of selenium and tesseract. So, let’s get started. What is Tesseract? Tesseract OCR is an open-source optical character reading engine developed by HP laboratories. It contains two OCR engines for image processing – an LSTM (Long Short Term Memory) OCR engine and Continue Reading

JavascriptExecutor in Selenium WebDriver

Reading Time: 4 minutes JavascriptExecutor is an interface provided by Selenium that gives a mechanism to execute JavaScript through Selenium WebDriver. It provides two methods such as “executeScript” & “executeAsyncScript” to run JavaScript on the currently selected frame or window or page. There are scenarios where the actual Webdriver commands will not work efficiently as expected and this is where JavaScriptExecutor comes into the picture. As JavaScriptExecutor is a Continue Reading

TestNG setup using Maven for Selenium

Reading Time: 3 minutes Definitions TestNG (Test Next Generationis) is an open source testing framework. TestNG is inspired from JUnit and NUnit. It is an improvised framework which makes it more powerful and easier. It provides the developer to write more powerful and flexible tests with the help of easy annotations, sequencing, grouping and parametrization. We can use TestNG for generating reports. The reports generated will be of two types pass and fail. Continue Reading

Jenkins Integration: Selenium Grid

Reading Time: 4 minutes Selenium Grid is a tool that we can use for testing, automating web applications, and run them on remote machines. We can run our tests to integrate them with CI/CD tools such as Jenkins. In this blog, we will see Jenkins Integration with Selenium Grid. Why is Jenkins integration required? Test automation helps us with continuous defects, errors, and bugs as early as possible. If Continue Reading

Automate drop-down menu and checkbox using Selenium 4.0

Reading Time: 3 minutes In the last blog, we saw how we can use locator strategies to find and use different elements for automating our projects. In this blog, we will see how we can automate the drop-down menu and checkbox using selenium 4.0. What’s the need for automating drop-down menu and checkbox? Nowadays most websites contain drop-down menus and check boxes to perform various interactions with the website. Continue Reading