daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     @Test
  2.     public void testLogin()
  3.     {
  4.         System.out.println("Starting test run...");
  5.         loginToPage();
  6.        
  7.         TaskListPage adefault = new TaskListPage(driver);
  8.         adefault.clickNewFormTab();
  9.  
  10.         String popupHandle = FormUtils.findNewerWindowHandle(driver, blHandles, 30);
  11.         if ( !popupHandle.isEmpty() )
  12.         {
  13.             driver.switchTo().window( popupHandle );
  14.             formHandle = driver.getWindowHandle();
  15.         }
  16.         driver.switchTo().window( aHandle ).close() ;
  17.         driver.switchTo().window( formHandle );
  18.         driver.manage().window().setPosition(new Point(220, 20));
  19.         driver.manage().window().setSize(new Dimension(1200, 1000));
  20.         FormUtils.waitSeconds(5);
  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