org.alfresco.webdrone.share.search
Class AdvanceSearch

java.lang.Object
  extended by org.alfresco.webdrone.Page
      extended by org.alfresco.webdrone.share.SharePage
          extended by org.alfresco.webdrone.share.search.AdvanceSearch
All Implemented Interfaces:
HtmlPage, Render
Direct Known Subclasses:
AdvanceFolderSearchPage, AdvanceSearchContentPage

public abstract class AdvanceSearch
extends SharePage

Advance search Abstract contains all the common functions of the search forms.

Since:
1.6
Author:
Subashni Prasanna

Field Summary
protected static org.openqa.selenium.By CONTENT_MIME_TYPE
           
protected static org.openqa.selenium.By CONTENT_SEARCH_FORM
           
protected static org.openqa.selenium.By DESCRIPTION_SEARCH
           
protected static org.openqa.selenium.By FOLDER_MENU_LIST
           
protected static org.openqa.selenium.By FOLDER_SEARCH_MENU
           
protected static org.openqa.selenium.By FOLDER_SEARCH_MENU_ITEM
           
protected static org.openqa.selenium.By KEYWORD_SEARCH
           
protected static org.openqa.selenium.By MODIFIER_FROM_SEARCH
           
protected static org.openqa.selenium.By MODIFIER_SEARCH
           
protected static org.openqa.selenium.By MODIFIER_TO_SEARCH
           
protected static org.openqa.selenium.By NAME_SEARCH
           
protected static org.openqa.selenium.By SEARCH_BUTTON
           
protected static org.openqa.selenium.By TITLE_SEARCH
           
 
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
protected AdvanceSearch(WebDrone drone)
          Constructor
 
Method Summary
 SiteResultsPage clickSearch()
          Click on Search button.
protected  org.openqa.selenium.WebElement findElementDisplayed(org.openqa.selenium.By elementId)
          This function will help to find element in the content and folder serach form.
 void inputDescription(String descriptionSearchText)
          Enter the text value in the description field.
 void inputFromDate(String fromDateText)
          Enter the date in the from date field.
 void inputKeyword(String keyWordSearchText)
          Content keyword is Displayed and enter search text in the keyword.
 void inputModifier(String modifierSearchText)
          Enter the text value in the modifier field.
 void inputName(String nameSearchText)
          Enter the text value in the Name field.
 void inputTitle(String titleSearchText)
          Enter the text value in the title field.
 void inputToDate(String toDateText)
          Enter the date in the To date field.
protected  boolean isDateModifierFromDisplayed()
          Check whether Date Modifier are not displayed.
protected  boolean isSearchButtonDisplayed()
          Check whether Search button is displayed correctly.
 HtmlPage searchLink(String searchType)
          Select Folder search in the drop down.
 void selectMimeType(String mimeType)
          Select the Mime type.
 
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
 
Methods inherited from interface org.alfresco.webdrone.Render
render, render, render
 

Field Detail

KEYWORD_SEARCH

protected static final org.openqa.selenium.By KEYWORD_SEARCH

NAME_SEARCH

protected static final org.openqa.selenium.By NAME_SEARCH

TITLE_SEARCH

protected static final org.openqa.selenium.By TITLE_SEARCH

DESCRIPTION_SEARCH

protected static final org.openqa.selenium.By DESCRIPTION_SEARCH

MODIFIER_SEARCH

protected static final org.openqa.selenium.By MODIFIER_SEARCH

MODIFIER_FROM_SEARCH

protected static final org.openqa.selenium.By MODIFIER_FROM_SEARCH

MODIFIER_TO_SEARCH

protected static final org.openqa.selenium.By MODIFIER_TO_SEARCH

CONTENT_MIME_TYPE

protected static final org.openqa.selenium.By CONTENT_MIME_TYPE

SEARCH_BUTTON

protected static final org.openqa.selenium.By SEARCH_BUTTON

FOLDER_SEARCH_MENU

protected static final org.openqa.selenium.By FOLDER_SEARCH_MENU

FOLDER_SEARCH_MENU_ITEM

protected static final org.openqa.selenium.By FOLDER_SEARCH_MENU_ITEM

FOLDER_MENU_LIST

protected static final org.openqa.selenium.By FOLDER_MENU_LIST

CONTENT_SEARCH_FORM

protected static final org.openqa.selenium.By CONTENT_SEARCH_FORM
Constructor Detail

AdvanceSearch

protected AdvanceSearch(WebDrone drone)
Constructor

Parameters:
drone -
Method Detail

isSearchButtonDisplayed

protected boolean isSearchButtonDisplayed()
Check whether Search button is displayed correctly.

Returns:
true if page is displayed correctly

isDateModifierFromDisplayed

protected boolean isDateModifierFromDisplayed()
Check whether Date Modifier are not displayed.

Returns:
true if search button

inputKeyword

public void inputKeyword(String keyWordSearchText)
Content keyword is Displayed and enter search text in the keyword.

Parameters:
String - keyWordSearchText

inputName

public void inputName(String nameSearchText)
Enter the text value in the Name field.

Parameters:
String - NameSearchText

inputTitle

public void inputTitle(String titleSearchText)
Enter the text value in the title field.

Parameters:
String - titleSearchText

inputDescription

public void inputDescription(String descriptionSearchText)
Enter the text value in the description field.

Parameters:
String - descriptionSearchText

inputModifier

public void inputModifier(String modifierSearchText)
Enter the text value in the modifier field.

Parameters:
String - modifierSearchText

inputFromDate

public void inputFromDate(String fromDateText)
Enter the date in the from date field.

Parameters:
String - fromDateText

inputToDate

public void inputToDate(String toDateText)
Enter the date in the To date field.

Parameters:
String - ToDateText

selectMimeType

public void selectMimeType(String mimeType)
Select the Mime type.

Parameters:
String - mimeType

clickSearch

public SiteResultsPage clickSearch()
Click on Search button.

Returns:
SiteResultsPage

findElementDisplayed

protected org.openqa.selenium.WebElement findElementDisplayed(org.openqa.selenium.By elementId)
                                                       throws NoSuchElementException
This function will help to find element in the content and folder serach form.

Returns:
- WebElement
Throws:
NoSuchElementException

searchLink

public HtmlPage searchLink(String searchType)
Select Folder search in the drop down.

Returns:
HtmlPage


Copyright © 2013. All Rights Reserved.