Home » Archives for Sarad Dhungel

Author Archives: Sarad Dhungel

I am a graduate in Computer Engineering from Howard University. Third place award winner in Intel-Cornell Cup. Passionate about new emerging software and technology. During free time, I enjoy reading about politics, business, spirituality, technology and traveling.

JUnit Selenium Grid Example

1. Introduction In this example, we will explore the functionality of Selenium Grid and we will understand it’s significance. We will create a Page Object and then we will access that page object from test cases using JUnit. The example will cover the gmail login where we will be invoking the url in node and hub using test cases in ...

Read More »

Selenium Javascriptexecutor Tutorial

1. Introduction Java Script executor is an interface of Selenium WebDriver that has the functionality similar to that of Java Script and can interact with HTML DOM elements. Instead of using driver.findElement method of the Selenium WebDriver we can use JavaScriptExecutor Interface to perform similar action on the Page.               It provides advantages over ...

Read More »

Selenium Tutorial for Beginners

In this tutorial, we will be overviewing Selenium automation tool in detail; we will be exploring Selenium WebDriver and discussing about identifying elements on the different Browsers using methods such as XPath, ID, CSS Selector and others.                   Selenium has three components, Selenium IDE, Selenium WebDriver formally known as Selenium Remote Control ...

Read More »

Selenium Keyboard Events Example

1. Introduction In this tutorial we will be discussing about the Advance User Interactions API. Using these APIs, we can perform actions on a web page similar to a user would interact on the user using keyboard and mouse.                 The Actions interface and Action classes are two modules of the API that ...

Read More »

Selenium Headless Browser Testing

Headless browser refers to running tests in browser like simulation without having to invoke a browser or without a GUI. In this example set, we will be using Headless browser to run test cases. We will be also discussing about the Headless browser in detail, about its importance as well as the caveat to keep in mind while using it. ...

Read More »

Selenium Grid Docker Tutorial

1. Introduction In this example set, we will be exploring the functionality of selenium grid on Docker container. We will be deploying the hub and nodes of Selenium Grid on the Docker container and will be linking together so that we could run test cases on the docker container. Environment of the Project: 1. Selenium Grid 3.0.1 2. Maven 4.0 3. TestNG ...

Read More »

Selenium Expected Condition Example

In this example set, I will be covering how the Selenium Excepted Conditions works. Before diving into use of ExpectedConditions in Selenium we must understand why do we need it. By default, Selenium doesn’t wait for elements once the page gets loaded. Thus, if the element is not present, then Selenium will throw NoSuchElement Exception. To overcome this, we need ...

Read More »

Selenium Chromedriver Tutorial

 1. Introduction In this example set, we will be exhibiting the concept of Data Driven Testing (DDT) by passing multiple sets of data using Apache POI and Web driver interface of Chrome Driver and thus testing them on the Facebook URL. In this tutorial, we will be passing multiple sets of username and password from spreadsheet “Testdata.xls” to Facebook URL. ...

Read More »

Using Selenium with Maven and Apache POI

In this example, we are going to see how can we fetch the data from Excel sheet using Apache POI and use those data to search on google.com using Selenium WebDriver. We will be also using Maven to configure dependencies for Selenium and Apache POI. 1. Introduction Selenium is a browser automation tool. It consists of Selenium-IDE, Selenium Web Driver and ...

Read More »