org.alfresco.webdrone.share.search
Class AdvanceSearchAbstract

java.lang.Object
  extended by org.alfresco.webdrone.Page
      extended by org.alfresco.webdrone.share.SharePage
          extended by org.alfresco.webdrone.share.search.AdvanceSearchAbstract
All Implemented Interfaces:
HtmlPage, Render

public abstract class AdvanceSearchAbstract
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 DESCRIPTION_SEARCH
           
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 AdvanceSearchAbstract(WebDrone drone)
          Constructor
 
Method Summary
 SiteResultsPage clickSearch()
          Click on Search button.
protected  boolean dateModifierIsNotDisplayed()
          Check whether Date Modifier are not displayed.
protected  org.openqa.selenium.WebElement findElementDisplayed(org.openqa.selenium.By elementId)
          Find the element that is displayed.
 void inputDescription(String descriptionSearchText)
          Enter the text value got 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 got in the modifier field.
 void inputName(String nameSearchText)
          Enter the text value got in the Name field.
 void inputTitle(String titleSearchText)
          Enter the text value got in the title field.
 void inputToDate(String toDateText)
          Enter the date in the To date field.
 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
Constructor Detail

AdvanceSearchAbstract

protected AdvanceSearchAbstract(WebDrone drone)
Constructor

Parameters:
drone -
Method Detail

inputKeyword

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


inputName

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

Parameters:
String - NameSearchText

inputTitle

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

Parameters:
String - titleSearchText

inputDescription

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

Parameters:
String - descriptionSearchText

inputModifier

public void inputModifier(String modifierSearchText)
Enter the text value got 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

dateModifierIsNotDisplayed

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

Returns:
true if search button

findElementDisplayed

protected org.openqa.selenium.WebElement findElementDisplayed(org.openqa.selenium.By elementId)
                                                       throws NoSuchElementException
Find the element that is displayed.

Returns:
webElement which is displayed
Throws:
NoSuchElementException


Copyright © 2013. All Rights Reserved.