C# Class OpenQA.Selenium.Support.Events.EventFiringWebDriver.EventFiringTimeouts

Defines the interface through which the user can define timeouts.
Inheritance: ITimeouts
Afficher le fichier Open project: asynchrony/Selenium2

Méthodes publiques

Méthode Description
EventFiringTimeouts ( IOptions options ) : System

Initializes a new instance of the EventFiringTimeouts class

ImplicitlyWait ( System.TimeSpan timeToWait ) : ITimeouts

Specifies the amount of time the driver should wait when searching for an element if it is not immediately present.

When searching for a single element, the driver should poll the page until the element has been found, or this timeout expires before throwing a NoSuchElementException. When searching for multiple elements, the driver should poll the page until at least one element has been found or this timeout has expired.

Increasing the implicit wait timeout should be used judiciously as it will have an adverse effect on test run time, especially when used with slower location strategies like XPath.

SetScriptTimeout ( System.TimeSpan timeToWait ) : ITimeouts

Specifies the amount of time the driver should wait when executing JavaScript asynchronously.

Method Details

EventFiringTimeouts() public méthode

Initializes a new instance of the EventFiringTimeouts class
public EventFiringTimeouts ( IOptions options ) : System
options IOptions The object to wrap.
Résultat System

ImplicitlyWait() public méthode

Specifies the amount of time the driver should wait when searching for an element if it is not immediately present.
When searching for a single element, the driver should poll the page until the element has been found, or this timeout expires before throwing a NoSuchElementException. When searching for multiple elements, the driver should poll the page until at least one element has been found or this timeout has expired.

Increasing the implicit wait timeout should be used judiciously as it will have an adverse effect on test run time, especially when used with slower location strategies like XPath.

public ImplicitlyWait ( System.TimeSpan timeToWait ) : ITimeouts
timeToWait System.TimeSpan A structure defining the amount of time to wait.
Résultat ITimeouts

SetScriptTimeout() public méthode

Specifies the amount of time the driver should wait when executing JavaScript asynchronously.
public SetScriptTimeout ( System.TimeSpan timeToWait ) : ITimeouts
timeToWait System.TimeSpan A structure defining the amount of time to wait.
Résultat ITimeouts