org.alfresco.webdrone.share
Class Navigation

java.lang.Object
  extended by org.alfresco.webdrone.Page
      extended by org.alfresco.webdrone.share.SharePage
          extended by org.alfresco.webdrone.share.Navigation
All Implemented Interfaces:
HtmlPage

public class Navigation
extends SharePage

Represent elements found on the html page relating to the main navigation bar

Since:
1.0
Author:
Michael Suzuki

Field Summary
 
Fields inherited from class org.alfresco.webdrone.Page
DEFAULT_PAGE_LOADING_TIME_WAIT, drone, version
 
Constructor Summary
Navigation(WebDrone drone)
          Constructor
 
Method Summary
 HtmlPage logout()
          Mimcs the action of selecting logout link.
 Navigation render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
 Navigation render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 Navigation render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
 HtmlPage selectAdvanceSearch()
           
 HtmlPage selectChangePassword()
          Mimcs the action of selecting my profile link.
 CreateSitePage selectCreateSite()
          Mimics the action of selecting create site link.
 HtmlPage selectMyDashBoard()
          Mimics the action of selecting the dashboard link.
 HtmlPage selectMyProfile()
          Mimcs the action of selecting my profile link.
 HtmlPage selectPeople()
          Mimics the action of selecting people finder link.
 HtmlPage selectRepository()
          Mimcs the action of selecting repository link.
 HtmlPage selectSearchForSites()
          Mimics the action of selecting site finder link.
 
Methods inherited from class org.alfresco.webdrone.share.SharePage
basicRender, disbaleFileUploadFlash, findButton, getLogin, getNav, getPageTitle, getSearch, isLogoPresent, isTitlePresent, panelExists
 
Methods inherited from class org.alfresco.webdrone.Page
close, getScreenShot, getTitle, isBrowserTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Navigation

public Navigation(WebDrone drone)
Constructor

Parameters:
drone - WebDriver browser client
Method Detail

render

public Navigation render(RenderTime timer)
                  throws PageException
Description copied from interface: HtmlPage
Page renderer verifies the page has rendered by checking all elements are visible and loaded. To verify this assertion every page object that implements the method will contain logic to determine if the page has loaded completely in the given time set by the RenderTime.

Parameters:
timer - RenderTime time to wait
Returns:
HtmlPage page object response
Throws:
PageException

render

public Navigation render()
                  throws PageException
Description copied from interface: HtmlPage
Page renderer verifies the page has rendered by checking java script page loaded status is complete.

Returns:
HtmlPage object response
Throws:
PageException

render

public Navigation render(long time)
                  throws PageException
Description copied from interface: HtmlPage
Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.

Returns:
HtmlPage page object response
Throws:
PageException

selectMyDashBoard

public HtmlPage selectMyDashBoard()
                           throws Exception
Mimics the action of selecting the dashboard link.

Returns:
HtmlPage dashboard page object
Throws:
Exception - if error

selectPeople

public HtmlPage selectPeople()
                      throws Exception
Mimics the action of selecting people finder link.

Returns:
HtmlPage people finder page object
Throws:
Exception - if error

selectSearchForSites

public HtmlPage selectSearchForSites()
                              throws Exception
Mimics the action of selecting site finder link.

Returns:
HtmlPage people finder page object
Throws:
Exception - if error

selectCreateSite

public CreateSitePage selectCreateSite()
                                throws Exception
Mimics the action of selecting create site link.

Returns:
HtmlPage people finder page object
Throws:
Exception

selectMyProfile

public HtmlPage selectMyProfile()
                         throws Exception
Mimcs the action of selecting my profile link.

Returns:
HtmlPage people finder page object
Throws:
Exception - if error

selectChangePassword

public HtmlPage selectChangePassword()
                              throws Exception
Mimcs the action of selecting my profile link.

Returns:
HtmlPage change password page object
Throws:
Exception - if error

logout

public HtmlPage logout()
                throws Exception
Mimcs the action of selecting logout link.

Throws:
Exception

selectRepository

public HtmlPage selectRepository()
                          throws Exception
Mimcs the action of selecting repository link.

Returns:
HtmlPage repository page object
Throws:
Exception - if error

selectAdvanceSearch

public HtmlPage selectAdvanceSearch()
                             throws Exception
Throws:
Exception


Copyright © 2012. All Rights Reserved.