C# Class SearchContextExtensions, code

Mostrar archivo Open project: shendongnian/code

Public Methods

Method Description
FindElement ( ISearchContext, context, By by, uint timeOutInSeconds ) : IWebElement

Method that finds an element based on the search parameters within a specified timeout.

FindElements ( ISearchContext, context, By by, uint timeoutInSeconds ) : IReadOnlyCollection

Method that finds a list of elements based on the search parameters within a specified timeout.

FindElements ( ISearchContext, context, By by, uint timeoutInSeconds, int minNumberOfElements ) : IReadOnlyCollection

Method that finds a list of elements with the minimum amount specified based on the search parameters within a specified timeout.

Method Details

FindElement() public static method

Method that finds an element based on the search parameters within a specified timeout.
public static FindElement ( ISearchContext, context, By by, uint timeOutInSeconds ) : IWebElement
context ISearchContext, The context where this is searched. Required for extension methods
by By The search parameters that are used to identify the element
timeOutInSeconds uint The time that the tool should wait before throwing an exception
return IWebElement

FindElements() public static method

Method that finds a list of elements based on the search parameters within a specified timeout.
public static FindElements ( ISearchContext, context, By by, uint timeoutInSeconds ) : IReadOnlyCollection
context ISearchContext, The context where this is searched. Required for extension methods
by By The search parameters that are used to identify the element
timeoutInSeconds uint The time that the tool should wait before throwing an exception
return IReadOnlyCollection

FindElements() public static method

Method that finds a list of elements with the minimum amount specified based on the search parameters within a specified timeout.
public static FindElements ( ISearchContext, context, By by, uint timeoutInSeconds, int minNumberOfElements ) : IReadOnlyCollection
context ISearchContext, The context where this is searched. Required for extension methods
by By The search parameters that are used to identify the element
timeoutInSeconds uint The time that the tool should wait before throwing an exception
minNumberOfElements int /// The minimum number of elements that should meet the criteria before returning the list /// If this number is not met, an exception will be thrown and no elements will be returned /// even if some did meet the criteria ///
return IReadOnlyCollection