View Javadoc

1   package com.atlassian.pageobjects.page;
2   
3   import com.atlassian.pageobjects.Page;
4   
5   /**
6    * The page that confirms the administrator password to start a secure administrator session
7    */
8   public interface WebSudoPage extends Page
9   {
10      /**
11       * Confirm the sys admin password and navigate to given page
12       * @param targetPage Page to navigate to after password confirm
13       * @param <T> Page
14       * @return Instance of target page
15       */
16      <T extends Page> T confirm(Class<T> targetPage);
17  
18      /**
19       * Confirm with given password and navigate to given page
20       * @param password The password to confirm
21       * @param targetPage Page to navigate to after password confirm
22       * @param <T> Page
23       * @return Instance of target page
24       */
25      <T extends Page> T confirm(String password, Class<T> targetPage);
26  }