Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebDriver driver;
- String baseUrl = "http://example.com";
- @BeforeClass
- public void beforeClass() {
- System.setProperty("webdriver.firefox.marionette","local path to geckodriver-v0.10.0-win64");
- DesiredCapabilities capabilities = DesiredCapabilities.firefox();
- capabilities.setCapability("marionette", true);
- driver = new FirefoxDriver();
- }
- @Test
- public void login() throws InterruptedException {
- driver.get(baseUrl);
- Thread.sleep(3000);
- }
- @AfterClass
- public void afterClass() {
- }
Add Comment
Please, Sign In to add comment