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
Author: Adarsh S
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
Collections framework (Usages)- For selenium
What is a Collections Framework? A collections framework is a unified architecture for representing and manipulating collections.All collections frameworks contain the following: Interfaces: These are abstract data types that represent collections. Interfaces allow collections to be manipulated independently of the details of their representation. In object-oriented languages, interfaces generally form a hierarchy. Implementations: These are the concrete… Continue reading Collections framework (Usages)- For selenium
Java Concepts For Selenium
Test NG Basics
TestNG is an automation testing framework in which NG stands for “Next Generation”. TestNG is inspired by JUnit which uses the annotations (@). TestNG overcomes the disadvantages of JUnit and is designed to make end-to-end testing easy. Using TestNG, you can generate a proper report, and you can easily come to know how many test cases are passed, failed, and… Continue reading Test NG Basics
ChromeOptions in Selenium Webdriver
ChromeOptions is a class in Selenium that is used to set the capability and customization and configuration of the ChromeDriver session as well. This class inherits the MutableCapabilities class. How to add chrome options in selenium -> Just by creating an instance ChromeOptions options = new ChromeOptions(); Uses of chrome options: It is used to… Continue reading ChromeOptions in Selenium Webdriver
What is WEBDRIVERMANAGER In SELENIUM Web Driver
WebDriverManager is an open-source library that is used to automate the handling of browser driver binaries. Users can add this library to their selenium project using a build tool like Maven Why we are using WebDriverManager? To run the selenium script in the browser we need to download the driver binary from the official site of… Continue reading What is WEBDRIVERMANAGER In SELENIUM Web Driver
Different types of Gestures used for Mobile/Ipad Testing
Mobile Gestures Mobile Gestures are the different ways of movements made by the user on the mobile screen for interacting with the mobile device interface. Having the knowledge of different mobile gestures will help you in writing the test cases in a better way or communicating things to others in a better way. Below are… Continue reading Different types of Gestures used for Mobile/Ipad Testing