Blogs

Handle Iframes In Selenium

To handle iframes in Selenium using Python, you need to switch the WebDriver’s context to the iframe first using the switch_to.frame() method. Here is a basic guide on working with iframes: Selenium Features Selenium Installation Selenium Locators XPath Fundamentals CSS Selectors Methods Different Browsers Execution find_element & find_elements Check Enabled

Read More >>

Handle Browser Windows/Tabs

To handle browser tabs in Selenium using Python, you can use methods to switch between windows or tabs using their handles. Here’s a guide on how to open a new tab, switch between tabs, and close Selenium Features Selenium Installation Selenium Locators XPath Fundamentals CSS Selectors Methods Different Browsers Execution

Read More >>

Take Screenshot Selenium

To take screenshot using Selenium in Python, you can use the save_screenshot() method or get_screenshot_as_file() method. Here’s how you can do it: Selenium Features Selenium Installation Selenium Locators XPath Fundamentals CSS Selectors Methods Different Browsers Execution find_element & find_elements Check Enabled Status Check Displayed Status Check Selected Status Selenium Waits

Read More >>

Forward, Back and Refresh Methods

In Selenium with Python, you can use the back(), forward(), and refresh() methods to navigate through browser history and reload pages. Here’s a quick overview of how to use them Selenium Features Selenium Installation Selenium Locators XPath Fundamentals CSS Selectors Methods Different Browsers Execution find_element & find_elements Check Enabled Status

Read More >>

Get Current URL

To get the current URL in Python using Selenium, you can use the current_url property of the WebDriver instance. Here’s how you can do it: Selenium Features Selenium Installation Selenium Locators XPath Fundamentals CSS Selectors Methods Different Browsers Execution find_element & find_elements Check Enabled Status Check Displayed Status Check Selected

Read More >>

get_attribute Method

In Selenium with Python, the get_attribute() method is used to retrieve the value of a specific attribute from an HTML element. This can be particularly useful when you need to access values like href for links, src for images, class, id, or other attributes of HTML elements. Selenium Features Selenium

Read More >>

Pycharm Configurations

PyCharm Installation for Windows OS: To install PyCharm on a Windows system, first ensure your computer meets the necessary system requirements, including running Windows 10 64-bit or later and having an active internet connection. Begin by downloading the latest version of PyCharm from the official JetBrains website: here Once the

Read More >>

Python Installation & Configuration

Python Installation for MacOS: To install Python on macOS, ensure your system meets the basic requirements: macOS 10.9 or later with a stable internet connection. Download the latest Python installer from python.org, follow the on-screen instructions, and verify the installation via Terminal. Ensure sufficient storage and admin rights for installation.

Read More >>

Get Text Selenium Method

In Selenium with Python, the text method retrieves the visible text from a web element. This is useful when you need to get the content of an element like a <div>, <span>, <p>, or any other HTML tag that contains text. Selenium Features Selenium Installation Selenium Locators XPath Fundamentals CSS

Read More >>

click Method

In Selenium with Python, the click() method is used to simulate a mouse click on a web element, like a button, link, or any other clickable element. Before using the click() method Selenium Features Selenium Installation Selenium Locators XPath Fundamentals CSS Selectors Methods Different Browsers Execution find_element & find_elements Check

Read More >>

send_keys Method

The send_keys() method in Selenium is used to simulate typing text into input fields or elements such as text boxes, text areas, or other editable elements in web pages. It can also be used to send special keys like Enter, Tab, or Arrow keys by using the Keys class from

Read More >>

Selenium Waits

Selenium is an incredibly useful tool for automating web testing, but dealing with web elements that load dynamically can sometimes be tricky. This is where Selenium waits come into play. Selenium Features Selenium Installation Selenium Locators XPath Fundamentals CSS Selectors Methods Different Browsers Execution find_element & find_elements Check Enabled Status

Read More >>

Dummy Booking Website

Dummy ticket websites provide different web elements to do the automation Dummy Ticket Booking Website Choose the correct option: Dummy ticket for visa application – $200 Dummy return ticket – $300 Dummy hotel booking ticket – $400 Dummy hotel and flight booking – $500 Cab booking and return date –

Read More >>

is_selected Method

The is_selected() method in Selenium is used to check whether a web element, such as a checkbox, radio button, or option in a dropdown, is currently selected or not. It returns True if the element is selected and False if it is not. Selenium Features Selenium Installation Selenium Locators XPath

Read More >>

is_displayed Method

The is_displayed() method in Selenium is used to check whether a web element is visible to the user on the webpage. This method returns True if the element is visible and False if it is hidden (e.g., using CSS display: none, visibility: hidden, or if it is outside the viewport).

Read More >>

is_enabled Method

The is_enabled() method in Selenium is used to check whether a web element is enabled or not. This is typically used to verify if an input element, button, or other interactive elements are enabled for interaction (e.g. if they are clickable or can receive input). Selenium Features Selenium Installation Selenium

Read More >>

find_element and find_elements methods

In Selenium, two commonly used methods to locate elements on a web page are find_element and find_elements. They allow you to interact with HTML elements like buttons, links, text fields, etc. Let’s break them down Selenium Features Selenium Installation Selenium Locators XPath Fundamentals CSS Selectors Methods Different Browsers Execution find_element

Read More >>

Different Browsers Execution with Selenium

Selenium is an open-source tool that automates browsers. It’s widely used in web testing to simulate user interaction with a website across different browsers Selenium Features Selenium Installation Selenium Locators XPath Fundamentals CSS Selectors Methods Different Browsers Execution find_element & find_elements Check Enabled Status Check Displayed Status Check Selected Status

Read More >>

CSS Selectors in Selenium

CSS (Cascading Style Sheets) Selectors are patterns used to select the content you want to style. In Selenium, CSS Selectors find HTML elements based on their CSS properties Selenium Features Selenium Installation Selenium Locators XPath Fundamentals CSS Selectors Methods Different Browsers Execution find_element & find_elements Check Enabled Status Check Displayed

Read More >>

XPath Fundamentals

XPath (XML Path Language) is a powerful query language used to select nodes from an XML or HTML document. In the context of Selenium, XPath is primarily used to locate elements in a web page. It provides a flexible way to navigate through elements and attributes in a document, even

Read More >>

Selenium Locators

In Python Selenium, locators are used to find and interact with elements on a web page. These locators help Selenium identify web elements like buttons, text fields, links, etc., allowing you to perform actions like clicking, entering text, or extracting information. Selenium offers several types of locators, each with its

Read More >>

Selenium Installation

Selenium installation is the first step to learn automation 1. Python Installation 2. Install Selenium 3. Run the First Selenium Script Execute script with Firefox

Read More >>

Python Selenium Tutorials

Python selenium tutorials contain all the topics related to selenium and methods belonging to browser action to automate any website. Selenium is an open-source automation tool primarily used for automating web browsers. It allows developers and testers to simulate user interactions with web applications, making it highly valuable for testing

Read More >>

SQL Revoke Statement

SQL Revoke Statement Tutorial Welcome to our comprehensive tutorial on the SQL REVOKE statement! In this guide, we will explore the SQL REVOKE statement, which is used to revoke specific privileges or permissions previously granted to users or roles within a database. We’ll provide a detailed understanding of the REVOKE

Read More >>

SQL Grant Statement

SQL Grant Statement Tutorial Introduction Welcome to our comprehensive tutorial on the SQL GRANT statement! In this guide, we will explore the SQL GRANT statement, which is used to assign specific privileges or permissions to users or roles within a database. We’ll provide a detailed understanding of the GRANT statement,

Read More >>

SQL Drop Statement

SQL Drop Statement Tutorial Introduction Welcome to our in-depth tutorial on the SQL DROP statement! In this guide, we will thoroughly examine the SQL DROP statement, a crucial tool for removing database objects such as tables, indexes, or views. We’ll provide you with a comprehensive understanding of the DROP statement,

Read More >>

SQL Alter Statement

SQL Alter Statement Tutorial Introduction Welcome to our comprehensive tutorial on the SQL ALTER statement! In this guide, we will delve into the SQL ALTER statement, a powerful tool for modifying the structure of existing database tables. We will provide you with an in-depth understanding of the ALTER statement, its

Read More >>