C# 클래스 Selenium.Window

상속: ComInterfaces._Window
파일 보기 프로젝트 열기: florentbr/SeleniumBasic 1 사용 예제들

공개 메소드들

메소드 설명
Activate ( ) : Window

Change focus to this window.

Close ( ) : void

Closes the current window.

Equals ( object obj ) : bool

Determines whether the specified instances are considered equal.

FullScreen ( ) : void

Set the current window full screen.

GetHashCode ( ) : int

Returns the hash code

Maximize ( ) : void

Maximizes the current window if it is not already maximized.

Position ( ) : Point

Gets the position of the browser window relative to the upper-left corner of the screen.

When setting this property, it should act as the JavaScript window.moveTo() method.

SetPosition ( int x, int y ) : void

Sets the position of the browser window relative to the upper-left corner of the screen.

SetSize ( int width, int height ) : void

Sets the size of the outer browser window, including title bars and window borders.

Size ( ) : Selenium.Size

Gets the size of the outer browser window, including title bars and window borders.

When setting this property, it should act as the JavaScript window.resizeTo() method.

SwitchToNextWindow ( int timeout = -1 ) : Window

Switch to the next available window

SwitchToPreviousWindow ( ) : Window

Switch to the previous focused window.

SwitchToWindowByName ( string name, int timeout = -1 ) : Window

Change focus to another window.

SwitchToWindowByTitle ( string title, int timeout = -1 ) : Window

Change focus to another window.

비공개 메소드들

메소드 설명
GetWindowHandle ( RemoteSession session ) : string
Window ( RemoteSession session, Selenium.Core.WindowContext windows, string handle ) : Selenium.Core
uri ( ) : string

메소드 상세

Activate() 공개 메소드

Change focus to this window.
public Activate ( ) : Window
리턴 Window

Close() 공개 메소드

Closes the current window.
public Close ( ) : void
리턴 void

Equals() 공개 메소드

Determines whether the specified instances are considered equal.
public Equals ( object obj ) : bool
obj object Object to compare.
리턴 bool

FullScreen() 공개 메소드

Set the current window full screen.
public FullScreen ( ) : void
리턴 void

GetHashCode() 공개 메소드

Returns the hash code
public GetHashCode ( ) : int
리턴 int

Maximize() 공개 메소드

Maximizes the current window if it is not already maximized.
public Maximize ( ) : void
리턴 void

Position() 공개 메소드

Gets the position of the browser window relative to the upper-left corner of the screen.
When setting this property, it should act as the JavaScript window.moveTo() method.
public Position ( ) : Point
리턴 Point

SetPosition() 공개 메소드

Sets the position of the browser window relative to the upper-left corner of the screen.
public SetPosition ( int x, int y ) : void
x int X
y int Y
리턴 void

SetSize() 공개 메소드

Sets the size of the outer browser window, including title bars and window borders.
public SetSize ( int width, int height ) : void
width int
height int
리턴 void

Size() 공개 메소드

Gets the size of the outer browser window, including title bars and window borders.
When setting this property, it should act as the JavaScript window.resizeTo() method.
public Size ( ) : Selenium.Size
리턴 Selenium.Size

SwitchToNextWindow() 공개 메소드

Switch to the next available window
public SwitchToNextWindow ( int timeout = -1 ) : Window
timeout int Optional timeout in milliseconds
리턴 Window

SwitchToPreviousWindow() 공개 메소드

Switch to the previous focused window.
public SwitchToPreviousWindow ( ) : Window
리턴 Window

SwitchToWindowByName() 공개 메소드

Change focus to another window.
public SwitchToWindowByName ( string name, int timeout = -1 ) : Window
name string Name of the window
timeout int Optional timeout in milliseconds
리턴 Window

SwitchToWindowByTitle() 공개 메소드

Change focus to another window.
public SwitchToWindowByTitle ( string title, int timeout = -1 ) : Window
title string Title of the window
timeout int Optional timeout in milliseconds
리턴 Window