Blog

How to use Java Collections, Lambda Expressions & Streams in Selenium Automation

Example1: /1) Find Number of Links in Page 2) Print Link Texts from all the links 3) Check how many links does not have href attribute(broken links) import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import io.github.bonigarcia.wdm.WebDriverManager; public…

How to Convert Database Results into JSON Files

[youtube=https://www.youtube.com/watch?v=mjpVbBS-854&w=500&h=300] Pre-Requisite: Create Mock Table \”constomersInfo\” in \”ClassicModels\” Database and insert some data. CREATE DATABASE ClassicModels; use ClassicModels; CREATE TABLE CustomerInfo (BookName varchar(50), PurchasedDate date, Amount int(50), Location varchar(50)); INSERT INTO CustomerInfo values(\”selenium\”,CURRENT_DATE(),350,\’Africa\’); INSERT INTO CustomerInfo values(\”Java\”,CURRENT_DATE(),200,\’Africa\’); INSERT INTO CustomerInfo…