How to disable insecure password warning in Firefox for Selenium?

If you use Selenium and Firefox version 52 or higher for running the automated tests and your development site does not use SSL, you will get the following warning when entering passwords on your login page This connection is not secure. Logins entered here could be compromised Firefox will also open the URL https://support.mozilla.org/en-US/kb/insecure-password-warning-firefox?as=u&utm_source=inproduct in a new …

Read moreHow to disable insecure password warning in Firefox for Selenium?

Interacting with the Elements in the page | Getting the list of elements and Child Element

In the Previous Tutorial, we learned to locate elements and perform the action on them. In this tutorial, we will learn some advanced ways to locate elements. Getting the list of elements with the matching locator Sometimes we may need to find all elements on the page that matches a particular locator. For instance, get …

Read moreInteracting with the Elements in the page | Getting the list of elements and Child Element

WebDriver Exceptions

Every programmer has to deal with exceptions or errors. Often beginner programmers get dishearten if their code start throwing Exceptions and they have no clue how to deal with it. In this tutorial, we’ll dig deeper to Exceptions world and will try to make friends with them. If you want to be an efficient programmer you …

Read moreWebDriver Exceptions

How to automate email validation?

Sometimes we are required to automate a test that asks the user to validate email. e.g. on registering a new user, a welcome email is sent to the user’s registered email address. One simple way is to open the webmail in the browser and automate it like any other web application. However, it has some …

Read moreHow to automate email validation?

Selenium Grid | Setting up Hub and Nodes

In the Previous Tutorial, we learned some advanced user interactions like automating mouse and keyboard movements. In this tutorial, we’ll learn to distribute our tests on remote machines. What is Selenium Grid? Selenium Grid provides a mechanism where we can run tests in a distributed environment against multiple browsers and operating systems. It works as a …

Read moreSelenium Grid | Setting up Hub and Nodes

Advanced User Interactions | Automating Keyboard press events

Quick Reference for key-press automation In the Previous Tutorial, we learned to automate drag-drop operations. In this tutorial, we’ll learn ways to automate different keyboard press events. Automating a use case for keypress Go to Automation Practice (Beginner) page Press ‘SHIFT’ and then enter values in the input box to simulate typing in upper-case. Press Ctrl-a to …

Read moreAdvanced User Interactions | Automating Keyboard press events

Advanced User Interactions | Performing drag and drop operations

Quick Reference to perform drag-drop In the Previous Tutorial, we covered the following – Introduction to Actions class Action interface Using moveToElement() method to move the mouse over an element Methods build() and perform() In this tutorial, we’ll learn to perform mouse drag-drop operations. Use dragAndDropBy() method to drag a slider from left to right by …

Read moreAdvanced User Interactions | Performing drag and drop operations

Advanced User Interactions | Introducing Actions and moving the mouse over an element

In the Previous Tutorial, we learned to execute a piece of Javascript through WebDriver. In this tutorial, we’ll learn some advanced user interactions. What is advanced user interactions? Sometimes we need to interact with our system’s mouse or keyboard to simulate user interaction. For instance, let’s say, in a web application, there is a menu bar. On …

Read moreAdvanced User Interactions | Introducing Actions and moving the mouse over an element

Interacting with the browser | Executing JavaScript through JavascriptExecutor

In the Previous Tutorial, we learned to take the screenshot of the page. In this tutorial, we’ll explore ways to execute a piece of Javascript through the WebDriver. What the heck is JavaScript? Well, JavaScript is a scripting language that runs on Client-side, i.e on the browser (those who are smarter please forget about node.js for a …

Read moreInteracting with the browser | Executing JavaScript through JavascriptExecutor

Waits | Explicit wait

In the Previous Tutorial, we learned the following ways of handling synchronization issues – What are the timeout/wait issues in Test Automation? How to address it by waiting for the element before performing the action? Getting the list of elements with a matching locator Instructing code to wait for the predefined time – Hardcoded wait Issues …

Read moreWaits | Explicit wait