website link : https://demoqa.com/
JunitPractics Class = https://github.com/aladnansami/DemoQa-WebSite-Automation-By-Junit/blob/main/src/test/java/JunitPractice.java
-
https://demoqa.com/text-box (Write TextBox )
-
https://demoqa.com/alerts (handle Alerts)
-
https://demoqa.com/date-picker (Select Date)
-
https://www.google.com/ (keyboard Event)
-
https://demoqa.com/select-menu (Select DropDown)
-
https://green.edu.bd/ (Mouse Hover)
-
https://demoqa.com/buttons (Action Click)
-
takeScreenShot
public void takeScreenShot () throws IOException {
driver.get("https://demoqa.com");
File screenshotfile= ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
String time = new SimpleDateFormat("dd-MM-yyyy-hh-mm-ss-aa").format(new Date());
String fileWithPath = "./src/test/resources/screenshots/" + time + ".png";
File DestFile = new File(fileWithPath);
FileUtils.copyFile(screenshotFile, DestFile); -
https://demoqa.com/upload-download (Upload File)
-
https://demoqa.com/upload-download (Download File)
-
https://demoqa.com/browser-windows (handle Window)
-
https://demoqa.com/webtables (Scrap data)