I have create testcasescreated some test cases in eclipseEclipse
.but But while runnigrunning the testng.xml file it's openit opens in a new browser every time.how to How do I run it in single browser.i? I am calling below for every testcaseseach test case, so it's openit opens in a new browser each time.
@BeforeClass
public static void setup()
{
System.setProperty("webdriver.chrome.driver", "E:\\Selenium Jar\\chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-extensions");
driver = new ChromeDriver(options);
driver.manage().window().maximize();
}