Category: Selenium

Handling Advanced User Interactions, Child windows, Frames in Selenium Python

table of contents Techniques to handle Child Windows/Tabs Code Implementation: Code Implementation: Frames and techniques to handle them Code Implementation: Code Implementation: Advanced interactions with Browser elements with Actions class Code Implementation: Code Implementation: Double click and Context click with Actions class Code Implementation: Code Implementation: Conclusion:  Techniques to handle Child Windows/Tabs Selenium handles opening […]

How to Build Logic to Automate HTML Web Tables in Selenium Python

Let us test a scenario where we shall validate if the sum of the values under the Total column in the order summary table is equal to the value of Total Amount field. We shall be using the GreenKart application with the below link: https://rahulshettyacademy.com/seleniumPractise/#/ Let us now spy on the table and analyze its […]

Synchronization (Explicit Waits) in Selenium Python

Explicit Wait and its advantages Let us now try to apply explicit wait to the same scenario discussed above. The explicit wait is applicable to a specific element on the page based on certain conditions. The explicit wait is applied with the help of the WebDriverWait class. The driver object and the wait time are […]

Synchronization (Implicit Waits) in Selenium Python

Table of Contents Implicit Wait and its advantages Code Implementation of the above scenario: Code Implementation with implicit wait: While working with web applications we would encounter scenarios where it takes some time for the page to load to perform an operation. In order to make the Selenium webdriver wait for some time before performing […]

How to To Invoke Different Browsers in Selenium with Python

Table of Contents To invoke Chrome browser Some basic webdriver methods Code to launch chrome browser along with some basic Selenium methods. To invoke Firefox browser Code to invoke firefox browser.  To invoke Internet Explorer browser Code to invoke internet explorer browser. Selenium supports multiple browsers like Chrome, Firefox, IE, and Safari and so on. […]

Assert and Verify Methods in Selenium

Asserts and Verify methods are commonly used in Selenium for verifying or validating applications. In this tutorial, we will learn the why, when, and how of using these methods to make Selenium tests more efficient. table of contents Assertions Types of Assertions Hard Assertions Verify in Selenium (also known as Soft Assertion) Hard vs Soft […]

Selenium Exception Handling (Common Exceptions List)

What is an Exceptions? An exception is an error that happens at the time of execution of a program. However, while running a program, programming languages generates an exception that should be handled to avoid your program to crash. The exception indicates that, although the event can occur, this type of event happens infrequently. When […]

Desired Capabilities in Selenium WebDriver

Desired Capabilities is a class in Selenium used to set properties of browsers to perform cross browser testing of web applications. It stores the capabilities as key-value pairs and these capabilities are used to set browser properties like browser name, browser version, path of browser driver in the system, etc. to determine the behaviour of […]

TestNG @Test Priority in Selenium

TestNG is a Testing framework, that covers different types of test designs like a unit test, functional test, end to end test, UI test and integration test. You can run a single or multiple test cases in your Testng code. If test priority is not defined while, running multiple test cases, TestNG assigns all @Test […]

TestNG Groups: Include, Exclude with Example – Selenium Tutorial

TestNG is a Testing framework that covers different types of test designs like unit, functional, end to end, UI and integration test. You can run a single or multiple packages (package here means to encapsulate a group of classes in a proper director format) by creating XML and run it through maven. table of contents […]