View Javadoc

1   package com.atlassian.pageobjects.elements.test.pageobjects.page;
2   
3   import com.atlassian.pageobjects.Page;
4   import com.atlassian.pageobjects.elements.ElementBy;
5   import com.atlassian.pageobjects.elements.PageElement;
6   
7   /**
8    * @since 2.2
9    */
10  public class BigPageWithButtons implements Page
11  {
12      @ElementBy(id = "button-right")
13      protected PageElement rightButton;
14  
15      @ElementBy(id = "button-bottom")
16      protected PageElement bottomButton;
17  
18      @ElementBy(id = "button-right-clicked")
19      protected PageElement rightButtonClickedMessage;
20  
21      @ElementBy(id = "button-bottom-clicked")
22      protected PageElement bottomButtonClickedMessage;
23  
24      public String getUrl()
25      {
26          return "/html/big-page-with-buttons.html";
27      }
28  
29      public PageElement getRightButton()
30      {
31          return rightButton;
32      }
33  
34      public PageElement getRightButtonClickedMessage()
35      {
36          return rightButtonClickedMessage;
37      }
38  
39      public PageElement getBottomButton()
40      {
41          return bottomButton;
42      }
43  
44      public PageElement getBottomButtonClickedMessage()
45      {
46          return bottomButtonClickedMessage;
47      }
48  }