Через eclipse запускаю JUnit тест при помощи geckodriver, открывается браузер firefox версии 50.1 чистый, без плагинов, без сохраненного входа на сайт. Как сделать так, чтобы тесты запускались в моем рабочем браузере?
package com.example.tests;
import java.util.regex.Pattern;
import java.util.concurrent.TimeUnit;
import org.junit.*;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;
public class InstSubs {
private WebDriver driver;
private String baseUrl;
private boolean acceptNextAlert = true;
private StringBuffer verificationErrors = new StringBuffer();
@Before
public void setUp() throws Exception {
System.setProperty("webdriver.gecko.driver", "C:/eclipse/selenium/geckodriver.exe");
driver = new FirefoxDriver();
baseUrl = "http://*****.com/";
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
}