daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static void loginToPage()
  2.     {  
  3.         driver = new ReusableFirefoxDriver();
  4.         System.out.println("Preparing browser with session id " + driver.getSessionId() ); 
  5.         System.out.println("Preparing URL: " + baseProto + "://" + baseURL + ":" + basePort + "/" + afmURI);
  6.         driver.manage().window().setPosition(new Point(200, 10));
  7.         driver.manage().window().setSize(new Dimension(1200, 1000));
  8.         driver.navigate().to(baseProto + "://" + baseURL + ":" + basePort + "/" + afmURI);
  9.         blHandles = driver.getWindowHandles();
  10.                 aHandle = driver.getWindowHandle();
  11.        
  12.         if ( !driver.findElement( By.id("gwt-uid-5") ).isDisplayed() ) {
  13.             System.out.println("Not logged in yet.");
  14.             LoginPage alp = new LoginPage(driver);     
  15.             alp.setLoginName("me");
  16.             alp.setPassword("password");
  17.             alp.setAgency(agName);
  18.                     alp.clickLogin();
  19.         }
  20.        
  21.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top