Guest User

Untitled

a guest
Dec 13th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. WebDriver driver;
  2. String baseUrl = "http://example.com";
  3. @BeforeClass
  4.  
  5. public void beforeClass() {
  6. System.setProperty("webdriver.firefox.marionette","local path to geckodriver-v0.10.0-win64");
  7. DesiredCapabilities capabilities = DesiredCapabilities.firefox();
  8. capabilities.setCapability("marionette", true);
  9. driver = new FirefoxDriver();
  10. }
  11.  
  12. @Test
  13. public void login() throws InterruptedException {
  14. driver.get(baseUrl);
  15. Thread.sleep(3000);
  16. }
  17.  
  18. @AfterClass
  19. public void afterClass() {
  20. }
Add Comment
Please, Sign In to add comment