Selenium Exercise 3
Selenium Exercise 3
Selenium Exercise 3
package automation_testing;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
System.setProperty("webdriver.chrome.driver", "C:\\Users\\omkar\\OneDrive\\Documents\\
Selenium\\chromedriver-win64\\chromedriver.exe");
driver.get("https://web-locators-static-site-qa.vercel.app/Image");
driver.manage().window().maximize();
Thread.sleep(2000);
else
driver.close();
}
Output: