+91 88606 33966            edu_sales@siriam.in                   Job Opening : On-site Functional Trainer/Instructor | Supply Chain Management (SCM)
Author : Mausomi Paul

How to Handle Checkboxes in Selenium

This article explains how to handle checkboxes using Selenium in Python. It includes locating checkboxes on a web page using their unique identifiers, verifying their initial selection state, toggling their selection by clicking, and printing the state changes to the console. 1. Import the Necessary Libraries, creating an driver instance and navigating to the specified […]

How to Handle IFrames in Selenium

This article explains how to identify and count the number of iframes (inline frames) present on a webpage using Selenium WebDriver. Two methods are used: An iFrame, or inline frame, is an HTML element that allows you to embed content from another source into a web page. iFrames are used to display content from other websites, […]

How to Take Screenshot in Selenium WebDriver

This article explains how to capture screenshots using Selenium WebDriver in Python. It includes screenshots of a specific web element and the entire webpage. The captured screenshots are saved in a specified directory on the local machine. 1. Create a Python file 2. Locate the web element and take a screenshot of that particular element […]

How to handles Drop down in selenium

This article demonstrates how to handle dropdown menus using the Select class in Selenium with Python. By interacting with a dropdown on the Selenium web form page, we perform operations such as selecting options by visible text, value, and index, retrieving the currently selected option, and printing all available options. Tasks The Selenium web form […]

How to Handle Alerts and Popups in Selenium

In this article, we will explore how to handle different types of JavaScript popups — alerts, confirm boxes, and prompt boxes — using Selenium. Each popup requires immediate user interaction and can be managed with driver.switch_to.alert. We will use methods like accept(), dismiss(), and send_keys() to interact with these. Follow the below steps to implement […]

Locating Strategies in Selenium : Locating by Id

Locators in Selenium are essential tools that help automate the tests to identify and interact with elements on a web page within the Document Object Model (DOM). It acts as a unique identifier for web elements, allowing testers to perform various actions such as clicking buttons, entering text, or validating the presence of elements. Selenium […]

Installing Selenium and Configuring Web Driver

This article setting up Selenium for web automation by installing the Selenium library using pip. Additionally, you’ll configure the required WebDriver (e.g., ChromeDriver or GeckoDriver) to interact with web browsers, ensuring your environment is ready for seamless browser automation. Install Selenium via pip Verify the installation Download the Appropriate WebDriver Selenium requires a browser-specific WebDriver […]

Selenium Python Example: How to run your first Test?

This activity involves automating a simple web interaction using Selenium. In this case, we’ll perform the following tasks: Prerequisites To run Selenium Python Tests here are the steps to follow: Import Necessary Librarie from selenium import webdriverimport time webdriver: This module provides the tools to control web browsers using Selenium. time: Standard Python library used […]

JUnit5: The Test Lifecycle

In JUnit 5, lifecycle methods are special methods that manage tests’ setup and teardown process. They allow developers to perform tasks before and after each test or the entire test suite. This helps prepare the test environment and clean up resources afterwards. The process is driven through four primary annotations  that are @BeforeAll, @BeforeEach, @AfterEach, and […]

How To Build Your First JUnit5 Test Case

Follow the below steps to to write your first Junit 5 test case in Eclipse. Step 1: Launch Eclipse and select your workspace. Step 2: Open the Junit5-demo maven project that we had set up in the previous article. Step 3: Expand the project in the Project Explorer tab. Step 4: Create a Java class […]

Scroll to top