Category: Python Selenium

The Blog To Learn Selenium and Test Automation

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

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