2019-01-30 15:47:03 +00:00
|
|
|
require("chromedriver");
|
|
|
|
import chrome from 'selenium-webdriver/chrome';
|
|
|
|
import SeleniumWebdriver from "selenium-webdriver";
|
|
|
|
|
|
|
|
export default function() {
|
|
|
|
const options = new chrome.Options().addArguments('headless');
|
|
|
|
|
|
|
|
beforeEach(function() {
|
|
|
|
const driver = new SeleniumWebdriver.Builder()
|
|
|
|
.forBrowser("chrome")
|
2019-01-30 22:33:14 +00:00
|
|
|
// .setChromeOptions(new chrome.Options().headless())
|
2019-01-30 15:47:03 +00:00
|
|
|
.build();
|
|
|
|
this.driver = driver;
|
|
|
|
});
|
|
|
|
|
|
|
|
afterEach(function() {
|
|
|
|
this.driver.quit();
|
|
|
|
});
|
|
|
|
}
|