C# 클래스 TestAutomationEssentials.Selenium.Browser

Represents an instance of a browser
상속: ElementsContainer, IDOMRoot
파일 보기 프로젝트 열기: arnonax/TestEssentials 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
WebDriver IWebDriver

Private Properties

프로퍼티 타입 설명
CheckDisposed void
IDOMRoot void

공개 메소드들

메소드 설명
Browser ( string description, IWebDriver webDriver ) : System

Initializes the instance of the object using the specified description and IWebDriver

Dispose ( ) : void

Closes the Selenium driver

GetWebDriver ( ) : IWebDriver

Returns the underlying IWebDriver object

NavigateToUrl ( string url ) : void

Navigates the main window to the specified url

OpenWindow ( Action action, string windowDescription ) : BrowserWindow

Invokes a delegate that causes a new window to open, and return an object representing the new window

When the current IIsolationScope ends, the window is automatically closed

보호된 메소드들

메소드 설명
Activate ( ) : void

비공개 메소드들

메소드 설명
CheckDisposed ( ) : void
IDOMRoot ( ) : void

메소드 상세

Activate() 보호된 최종 메소드

protected final Activate ( ) : void
리턴 void

Browser() 공개 메소드

Initializes the instance of the object using the specified description and IWebDriver
one of the arguments are null
public Browser ( string description, IWebDriver webDriver ) : System
description string The description of the browser. This is used for logging
webDriver IWebDriver The WebDriver instance that is used to communicate with the browser
리턴 System

Dispose() 공개 메소드

Closes the Selenium driver
public Dispose ( ) : void
리턴 void

GetWebDriver() 공개 메소드

Returns the underlying IWebDriver object
public GetWebDriver ( ) : IWebDriver
리턴 IWebDriver

NavigateToUrl() 공개 메소드

Navigates the main window to the specified url
public NavigateToUrl ( string url ) : void
url string The url to navigate to
리턴 void

OpenWindow() 공개 메소드

Invokes a delegate that causes a new window to open, and return an object representing the new window
When the current IIsolationScope ends, the window is automatically closed
or are null A new window wasn't opened for 60 seconds after the delegate completed
public OpenWindow ( Action action, string windowDescription ) : BrowserWindow
action Action The delegate that should cause a new window to open
windowDescription string A description that will identify the window in the log
리턴 BrowserWindow

프로퍼티 상세

WebDriver 보호되어 있는 프로퍼티

Provides access to the underlying IWebDriver
protected IWebDriver WebDriver
리턴 IWebDriver