How to TakeScreenshot Using Selenium 4
mvn clean test Dependencies : < version > 1.0-SNAPSHOT </ version > < dependencies > <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java --> < dependency > < groupId > org.seleniumhq.selenium </ groupId > < artifactId > selenium-java </ artifactId > < version > 4.4.0 </ version > </ dependency > <!-- https://mvnrepository.com/artifact/org.testng/testng --> < dependency > < groupId > org.testng </ groupId > < artifactId > testng </ artifactId > < version > 7.6.1 </ version > < scope > test </ scope > </ dependency > <!-- https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager --> < dependency > < groupId > io.github.bonigarcia </ groupId > < artifactId > ...