Coding Fun Java How Should We Terminate Browser Driver Executable File In Selenium WebDriver

How Should We Terminate Browser Driver Executable File In Selenium WebDriver





import java.io.IOException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.os.WindowsUtils;

public class Kill_Chrome {
public static void main(String[] args) throws IOException {
System.setProperty(“webdriver.chrome.driver”, System.getProperty(“user.dir”)
+ “/src/test/java/Report/BrowserDrivers/chrome_win_32/chromedriver_2.38.exe”);
WebDriver driver = new ChromeDriver();

driver.manage().window().maximize();

Tags: , , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *