org.alfresco.webdrone.share.search
Class SearchResultItem

java.lang.Object
  extended by org.alfresco.webdrone.share.search.SearchResultItem

public class SearchResultItem
extends Object

Holds the information of a search result item. When completing a search the resulting page yeilds results which each indivdual row is represented by SearchResultItem class.

Since:
1.3
Author:
Michael Suzuki

Constructor Summary
SearchResultItem(org.openqa.selenium.WebElement element)
          Constructor
 
Method Summary
 boolean click()
          Select the link of the search result item.
 String getTitle()
          Title of search result item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResultItem

public SearchResultItem(org.openqa.selenium.WebElement element)
Constructor

Parameters:
element - WebElement
Method Detail

getTitle

public String getTitle()
Title of search result item.

Returns:
String title

click

public boolean click()
Select the link of the search result item.

Returns:
true if link found and selected


Copyright © 2013. All Rights Reserved.