Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Before
- public void setUp() throws Exception {
- FirefoxBinary firefoxBinary = new FirefoxBinary();
- firefoxBinary.addCommandLineOptions("--headless");
- System.setProperty("webdriver.gecko.driver","C:\\geckodriver.exe");
- FirefoxOptions firefoxOptions = new FirefoxOptions();
- firefoxOptions.setBinary(firefoxBinary);
- driver = new FirefoxDriver(firefoxOptions);
- baseUrl = "http://plp.scnsoft.com/login";
- driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement