Test case for Valid Coupon Code
This test case checks whether a valid coupon code is successfully applied to a booking cart, the total is updated accordingly, and a...
Keyboard shortcut keys for various operations
General Shortcuts: Ctrl + C: Copy Ctrl + X: Cut Ctrl + V: Paste Ctrl + Z: Undo Ctrl + Y: Redo Ctrl + A: Select All Ctrl + S: Save Ctrl +...
Serialization vs Deserialization
Object to Byte Stream Example // Serialize an object to a byte stream ByteArrayOutputStream bytArrOPStream = new ByteArrayOutputStream();...
What is Flaky test? Steps to resolve Test Flakiness
A flaky test An automated test in a software testing environment that may produce inconsistent results, sometimes passing and sometimes...
Retrieve data from a JSON file
To retrieve data from a JSON file using Java and Selenium, you can use a library like Gson or Jackson for handling JSON parsing. {...
Python MySQL Database Operations Example with mysql.connector
import mysql.connector try: # Establish a connection to the MySQL database con = mysql.connector.connect(host="localhost", port=3306,...
Java JDBC Database Operations Example
package com.seleniumExamples2024; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import...
Read data From Excel Python
import openpyxl # Load the Excel workbook workbook = openpyxl.load_workbook("C://Users/Nikil/PycharmProjects/pythonBasics/Userdata.xlsx")...
Automation Testing - Selenium Java Syntax vs Selenium Python Syntax
Selenium Java Syntax vs Selenium Python Syntax
Write Testcase for Forgot Password
import java.time.Duration; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement;...
Selenium WebDriver exceptions
Selenium WebDriver exceptions are specialized classes that represent various error conditions that can occur during test execution. List...
Structured query language (SQL) Commands
SQL Commands Structured query language (SQL) is a programming language for storing and processing information in a relational database. A...
Selenium-Java Automation Frame work Designing
Designing a Selenium-Java automation framework involves structuring the project with folders for tests, page objects, and utilities....
Python-Selenium Automation Frame work Folder structure
Developing a Selenium Python framework involves creating a structured project with folders for tests, page objects, and utilities....
Take Screen shot on Test Failure Python Selenium Automation Testing
Take Screen shot on Test Failure # Import necessary libraries import time from selenium import webdriver from selenium.webdriver.common.b...
Dropdown Automation Selenium Python
How to manage Selenium dropdowns without utilizing the Select class? # Import the 'time' module for sleep functionality import time #...
Selenium Python- Take Screen shot
How can one capture a screenshot using Selenium in Python? # Import necessary libraries import time from selenium import webdriver from...
Run Browser in Headless mode
Provide a Selenium script demonstrating how to run a browser in headless mode, specifically using Chrome # Import necessary libraries...
getText() method - Python Selenium Automation Testing
What is the role of the `getText` method and how this method is utilized to fetch and display the text content from webelement # Import...
Multiple Tab Open Selenium-Python
What is the approach for dealing with multiple tabs in a web browser using Selenium in Python? import time from selenium import webdriver...