Running Group Tests using TestNG

TestNG, a powerful testing framework for Java applications, offers a wide array of features to streamline the testing process, one of which is the ability to organize and run tests in groups. This functionality proves invaluable when dealing with complex test suites that encompass various types of tests or need to be executed selectively. In… Continue reading Running Group Tests using TestNG

Actions class in Selenium

The Actions class in Selenium WebDriver is a feature that provides a way to simulate complex user interactions, such as mouse movements, keyboard actions, and multiple-step operations like drag-and-drop. It allows testers and developers to perform advanced interactions with web elements, closely emulating the actions that a user would perform on a web page. The… Continue reading Actions class in Selenium

Handling Dynamic Elements In Java Selenium

When automating web applications with Selenium in Java, one common challenge is dealing with dynamic elements. Dynamic elements are elements on a web page whose attributes, positions, or presence may change dynamically during runtime. This can happen due to various reasons, such as asynchronous loading, AJAX requests, or dynamic content updates. Handling dynamic elements effectively… Continue reading Handling Dynamic Elements In Java Selenium

Introduction to Junit in in Selenium Automation Testing

What is JUnit? JUnit is an open-source testing framework specifically designed for Java applications. It facilitates the creation of unit tests – tests that validate the functionality of individual units or components of code in isolation. In Selenium automation testing, these components can include web pages, elements, or specific functionality within a web application. Why… Continue reading Introduction to Junit in in Selenium Automation Testing

Automation Testing vs Manual Testing

Automation Testing Automation testing is a process of changing any manual test case into the test scripts by using automation testing tools, and scripting or programming language is called automation. Automation testing is used to increase the efficiency, effectiveness, and coverage of Software testing. Automation test engineer uses automation testing tools to automate the manual… Continue reading Automation Testing vs Manual Testing

Prioritize Test Cases in TestNG

How to prioritize test cases (For selenium Automation – TestNG Framework) When Multiple test cases are written under one class, it will execute according to the alphabetical order(ASCII), for making it execute based on our condition, we will prioritize the test cases → ByDefault all the tests in the class will be executed in the… Continue reading Prioritize Test Cases in TestNG

Methods used in Selenium WebDriver for Automation

Selenium web driver in simple terms is an API library that contains a list of predefined classes and interfaces that contains predefined methods Basic Methods that are used in Selenium web driver: get() → Used to open specified URL’s web page, (HTTP:// needs to be provided) manage() → manage().window().maximized(); → To maximize the window manage().window().minimize();… Continue reading Methods used in Selenium WebDriver for Automation

Taking Screenshots using Selenium webdriver

Testing steps: Load the page using the given URL (Log in | Register (formsscasb.tk)) Select the Sign-Up link Fill out all the fields and uncheck the checkbox Click the Create Account button Take the screenshot Quit browser Code: Script: public static void main(String[] args) throws Exception { WebDriverManager.edgedriver().setup(); EdgeOptions options = new EdgeOptions(); options.addArguments(“start-maximized”); WebDriver… Continue reading Taking Screenshots using Selenium webdriver

Logout using selenium web driver with dynamically handling the dropdown

Testing steps: Load the page using the given URL (Log in | Register (formsscasb.tk)) Login using valid credentials → (Email: radhika.rakesh@jobinandjismi.com, Password: test@12345) Select the arrow dropdown near the account name at the top right of the page and selects the logout option Dynamically handling the dropdown Script: public static void main(String[] args) throws Exception… Continue reading Logout using selenium web driver with dynamically handling the dropdown

Search a item using selenium webdriver

Testing steps: Load the page using the given URL (Log in | Register (formsscasb.tk)) Login using valid credentials → (Email: radhika.rakesh@jobinandjismi.com, Password: test@12345) Select the search icon Enter an item into the search field → (62-058 High Yield MICR Toner Cartridge: HP LaserJet M506x) Select the Go button View and select the product to view… Continue reading Search a item using selenium webdriver