C# 클래스 OpenQA.Selenium.Support.Events.EventFiringWebDriver.EventFiringTimeouts

Defines the interface through which the user can define timeouts.
상속: ITimeouts
파일 보기 프로젝트 열기: asynchrony/Selenium2

공개 메소드들

메소드 설명
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.

메소드 상세

EventFiringTimeouts() 공개 메소드

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

ImplicitlyWait() 공개 메소드

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.
리턴 ITimeouts

SetScriptTimeout() 공개 메소드

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.
리턴 ITimeouts