All Selenium

The Blog to Learn Test Automation and Selenium

Python Selenium all mouse actions using ActionChains

In this article, we are going to see all mouse actions available and supported by Python Selenium WebDriver as ActionChains object. As discussed in our previous article, there might be many scenarios where we need to use mouse actions in automation testing. Some common uses case are given below. What is ActionChains? ActionChains are a…
Read more

TestNG Annotations 101

This article explains basics of all TestNG annotations, provides examples for each annotation, explains each TestNG annotation in more detail along with its attributes, and provides tips and tricks for efficient usage. A Brief Introduction to Annotations Annotations are used to provide additional information (Metadata) about a program; To be specific it provides additional information…
Read more

How to debug tests running on Docker containers

Our previous article Selenium Docker: Parallel execution made easy explains how to execute selenium tests in Docker. Important point to note and understand – the test scripts are running in local machine or invoked from local machine. docker container provides only the browser The setup explained is good for production. However during development of test…
Read more

Selenium Testing in Safari Browser – macOS Sierra

In this article, we are going to experiment running tests in Safari browser (12.1.1) and also going to check necessary pre-requisites to enable Safari browser for automated test execution. Throughout this article we used Python Selenium WebDriver which is Selenium’s cross-platform, cross-browser automation API for Python programming language. Safari Browser – Test Automation Safari browser…
Read more

How to handle iframes using Selenium WebDriver

An iframe is used to embed HTML documents in other HTML documents. And iframe content can be changed without requiring the user to reload the surrounding page. The iframe HTML element is often used to insert content from same/another source, such as an advertisement, into a Web page.

How to setup User-Agent in Python Selenium WebDriver

In this article, lets see how we can setup user-agent for browsers and read user-agents in Python Selenium WebDriver. Manipulation of user-agent is required for many scenarios in testing. What is User-Agent? The User-Agent request header contains a characteristic string that allows the network protocol peers to identify the application type, operating system, software vendor…
Read more

How to deal with certificates using Python Selenium

How can I deal with the web application for which HTTPS is enabled with self-signed certificates? – This is a common scenario we face as testers in our test execution. A self-signed certificate is enough to establish a secure HTTPS connection, although browsers will complain that the certificate is self-signed and not trusted. However it is great for development and testing purposes. In this article, we are going to experiment working with ‘HTTPS’ web application.

Working with expected conditions explicit wait – part 2

In our previous articles, we have seen basics of Implicit and Explicit wait; Also we have seen some of the in-built expected conditions provided by Python Selenium to make explicit wait more easier to use. In this article, we are going to explore some of the expected conditions available in Python Selenium. Explicit wait Recap…
Read more

Introduction to time module – Learn Basic Python – 2

Python has several in-built modules for working with dates as well as time; In this article, we will be looking at time module, with examples, available in Python to manipulate time. This article is split into two parts. Learn the basics of time module Uses of these modules in Test Automation time Module The time…
Read more

Common file operations – Learn Basic Python – 1

File operations are common in application development as well as test cases automation. There are many options available in python to handle file operations; Some options are straight forward handles like importing module and call pre-defined method; Some options like os.popen() and os.system() are not straight forward. shutil is an in-built module offering high level…
Read more