Answer the question
In order to leave comments, you need to log in
Why do 2 browsers open when running a test?
@Before
public void prepareData() {
FirefoxBinary firefoxBinary = new FirefoxBinary();
//firefoxBinary.addCommandLineOptions("--headless");
FirefoxOptions firefoxOptions = new FirefoxOptions();
firefoxOptions.setBinary(firefoxBinary);
driver = new FirefoxDriver(firefoxOptions);
}
@Given("^пользователь на странице \"([^\"]*)\"$")
public void setPage(String url) {
driver.get(url);
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(4,
TimeUnit.SECONDS);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question