org.specrunner.webdriver
Interface IFinder

All Superinterfaces:
IParameterHolder
All Known Implementing Classes:
FinderXPath

public interface IFinder
extends IParameterHolder

Something that finds WebElement in pages.

Author:
Thiago Santos

Method Summary
 List<org.openqa.selenium.WebElement> find(IContext context, IResultSet result, org.openqa.selenium.WebDriver client)
          Returns a list of elements.
 void reset()
          Clear any previous finder settings.
 String resume(IContext context)
          The representation of the filter.
 
Methods inherited from interface org.specrunner.parameters.IParameterHolder
getParameters, setParameters
 

Method Detail

reset

void reset()
Clear any previous finder settings.


find

List<org.openqa.selenium.WebElement> find(IContext context,
                                          IResultSet result,
                                          org.openqa.selenium.WebDriver client)
                                          throws PluginException
Returns a list of elements.

Parameters:
context - The test context.
result - The result set.
client - The browser.
Returns:
A list empty or not of elements.
Throws:
PluginException - On filter errors.

resume

String resume(IContext context)
              throws PluginException
The representation of the filter.

Parameters:
context - The test context.
Returns:
A string that 'explain' the search used.
Throws:
PluginException - On detail errors.


Copyright © 2013. All rights reserved.