C# Class Pepino.ScenarioRunner.Selenium.Specs.Fakes.FakeElementFinder

Inheritance: IElementFinder
Show file Open project: AcklenAvenue/Pepino

Public Methods

Method Description
FindMany ( IWebDriver webDriver, string selector, int seconds = 10 ) : IEnumerable
FindOne ( IWebDriver webDriver, string selector, int seconds = 10 ) : IWebElement
SetWebElement ( string selector, IWebElement element, Available after = Available.Immediately ) : void
ShouldBeInstructedToWaitSeconds ( string element, int seconds ) : void
ThrowWhenNotFound ( Exception exception ) : void

Private Methods

Method Description
AvailableElements ( string selector, int seconds ) : IEnumerable

Method Details

FindMany() public method

public FindMany ( IWebDriver webDriver, string selector, int seconds = 10 ) : IEnumerable
webDriver IWebDriver
selector string
seconds int
return IEnumerable

FindOne() public method

public FindOne ( IWebDriver webDriver, string selector, int seconds = 10 ) : IWebElement
webDriver IWebDriver
selector string
seconds int
return IWebElement

SetWebElement() public method

public SetWebElement ( string selector, IWebElement element, Available after = Available.Immediately ) : void
selector string
element IWebElement
after Available
return void

ShouldBeInstructedToWaitSeconds() public method

public ShouldBeInstructedToWaitSeconds ( string element, int seconds ) : void
element string
seconds int
return void

ThrowWhenNotFound() public method

public ThrowWhenNotFound ( Exception exception ) : void
exception System.Exception
return void