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, Render

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.share.SharePage
dojoSupport, WAIT_TIME_3000
 
Fields inherited from class org.alfresco.webdrone.Page
drone, maxPageLoadingTime, version
 
Constructor Summary
Navigation(WebDrone drone)
          Constructor
 
Method Summary
 UserSearchPage getUsersPage()
          Navigates to the users page on Admin Console - Enterprise Only option.
 LoginPage logout()
          Mimics 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.
 AdvanceSearchContentPage selectAdvanceSearch()
          Select the advance search button from dropdown.
 ChangePasswordPage selectChangePassword()
          Mimics the action of selecting my profile link.
 CreateSitePage selectCreateSite()
          Mimics the action of selecting create site link.
 DashBoardPage selectMyDashBoard()
          Mimics the action of selecting the dashboard link.
 MyProfilePage selectMyProfile()
          Mimics the action of selecting my profile link.
 PeopleFinderPage selectPeople()
          Mimics the action of selecting people finder link.
 RepositoryPage selectRepository()
          Mimics the action of selecting repository link.
 SiteFinderPage selectSearchForSites(String... val)
          Mimics the action of selecting site finder link.
 
Methods inherited from class org.alfresco.webdrone.share.SharePage
basicRender, canResume, canResume, disbaleFileUploadFlash, elementRender, findButton, getCopyRight, getLogin, getNav, getPageTitle, getSearch, isJSMessageDisplayed, isLoggedIn, isLogoPresent, isTitlePresent, panelExists
 
Methods inherited from class org.alfresco.webdrone.Page
close, getDrone, getScreenShot, getTitle, isBrowserTitle, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Navigation

public Navigation(WebDrone drone)
Constructor

Parameters:
drone - WebDriver browser client
Method Detail

render

public Navigation render(RenderTime timer)
Description copied from interface: Render
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

render

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

Returns:
HtmlPage object response

render

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

Parameters:
time - waiting time
Returns:
HtmlPage page object response

selectMyDashBoard

public DashBoardPage selectMyDashBoard()
Mimics the action of selecting the dashboard link.

Returns:
HtmlPage dashboard page object

selectPeople

public PeopleFinderPage selectPeople()
Mimics the action of selecting people finder link.

Returns:
HtmlPage people finder page object

selectSearchForSites

public SiteFinderPage selectSearchForSites(String... val)
Mimics the action of selecting site finder link.

Returns:
HtmlPage people finder page object

selectCreateSite

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

Returns:
HtmlPage people finder page object

selectMyProfile

public MyProfilePage selectMyProfile()
Mimics the action of selecting my profile link.

Returns:
HtmlPage people finder page object

selectChangePassword

public ChangePasswordPage selectChangePassword()
Mimics the action of selecting my profile link.

Returns:
HtmlPage change password page object

logout

public LoginPage logout()
Mimics the action of selecting logout link. The page returned from a logout is a LoginPage.

Returns:
LoginPage page response

selectRepository

public RepositoryPage selectRepository()
Mimics the action of selecting repository link.

Returns:
HtmlPage repository page object

selectAdvanceSearch

public AdvanceSearchContentPage selectAdvanceSearch()
Select the advance search button from dropdown.

Returns:
HtmlPage advance search page.

getUsersPage

public UserSearchPage getUsersPage()
Navigates to the users page on Admin Console - Enterprise Only option.

Returns:
UserSearchPage Instance of UserSearchPage


Copyright © 2013. All Rights Reserved.