Via eclipse, I run the JUnit test using geckodriver, the firefox 50.1 browser is open, without plugins, without a saved login. How to make tests run in my working browser?
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); }