C# 클래스 White.Core.Application

Represents a process which contains windows.
상속: IDisposable
파일 보기 프로젝트 열기: PulseMiningSystems/White 1 사용 예제들

공개 메소드들

메소드 설명
Attach ( Process process ) : Application

Attaches with existing process

Attach ( int processId ) : Application

Creates an Application object for existing process

Attach ( string executable ) : Application

Attaches with existing process

AttachOrLaunch ( ProcessStartInfo processStartInfo ) : Application

Attaches to the process if it is running or launches a new process

Close ( ) : void

Tries to find the main window, then close it. If it hasn't closed in 5 seconds, kill the process

Dispose ( ) : void
Equals ( object obj ) : bool

Two applications are equal if they have the same process

Find ( Predicate match, White.Core.Factory.InitializeOption initializeOption ) : White.Core.UIItems.WindowItems.Window

Looks at all the windows visible for the application and finds one which matches the condition. The match is run against the title of the windows

FindSplash ( ) : White.Core.UIItems.WindowItems.Window
GetHashCode ( ) : int
GetWindow ( White.Core.UIItems.Finders.SearchCriteria searchCriteria, White.Core.Factory.InitializeOption initializeOption ) : White.Core.UIItems.WindowItems.Window

Find the first window which belongs to this application and satisfies the critera.

GetWindow ( string title ) : White.Core.UIItems.WindowItems.Window

Get visible window

GetWindow ( string title, White.Core.Factory.InitializeOption option ) : White.Core.UIItems.WindowItems.Window

Get visible window

GetWindows ( ) : List

All windows belonging to the application

Kill ( ) : void

Kills the applications and waits till it is closed

KillAndSaveState ( ) : void

Kills the application. Read Application.Kill. It also saves the application test execution state. This saves the position of the window UIItems which would be loaded next time automatically for improved performance. You would need to use InitializedOption.AndIdentifiedBy for specifying the identification of window.

Launch ( ProcessStartInfo processStartInfo ) : Application

Lauches the process and creates and Application object for it

Launch ( string executable ) : Application

Runs the process identified by the executable and creates Application object for this executable

WaitWhileBusy ( ) : void

Waits till application is busy.

보호된 메소드들

메소드 설명
Application ( ) : System

비공개 메소드들

메소드 설명
Application ( Process process ) : System
ReplaceLast ( string replaceIn, string replace, string with ) : string

메소드 상세

Application() 보호된 메소드

protected Application ( ) : System
리턴 System

Attach() 공개 정적인 메소드

Attaches with existing process
public static Attach ( Process process ) : Application
process System.Diagnostics.Process
리턴 Application

Attach() 공개 정적인 메소드

Creates an Application object for existing process
public static Attach ( int processId ) : Application
processId int
리턴 Application

Attach() 공개 정적인 메소드

Attaches with existing process
public static Attach ( string executable ) : Application
executable string
리턴 Application

AttachOrLaunch() 공개 정적인 메소드

Attaches to the process if it is running or launches a new process
public static AttachOrLaunch ( ProcessStartInfo processStartInfo ) : Application
processStartInfo System.Diagnostics.ProcessStartInfo
리턴 Application

Close() 공개 메소드

Tries to find the main window, then close it. If it hasn't closed in 5 seconds, kill the process
public Close ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Equals() 공개 메소드

Two applications are equal if they have the same process
public Equals ( object obj ) : bool
obj object
리턴 bool

Find() 공개 메소드

Looks at all the windows visible for the application and finds one which matches the condition. The match is run against the title of the windows
public Find ( Predicate match, White.Core.Factory.InitializeOption initializeOption ) : White.Core.UIItems.WindowItems.Window
match Predicate
initializeOption White.Core.Factory.InitializeOption option for the window which matches the condition
리턴 White.Core.UIItems.WindowItems.Window

FindSplash() 공개 메소드

public FindSplash ( ) : White.Core.UIItems.WindowItems.Window
리턴 White.Core.UIItems.WindowItems.Window

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetWindow() 공개 메소드

Find the first window which belongs to this application and satisfies the critera.
public GetWindow ( White.Core.UIItems.Finders.SearchCriteria searchCriteria, White.Core.Factory.InitializeOption initializeOption ) : White.Core.UIItems.WindowItems.Window
searchCriteria White.Core.UIItems.Finders.SearchCriteria
initializeOption White.Core.Factory.InitializeOption found window would be initialized with this option
리턴 White.Core.UIItems.WindowItems.Window

GetWindow() 공개 메소드

Get visible window
public GetWindow ( string title ) : White.Core.UIItems.WindowItems.Window
title string Title text of window displayed on desktop
리턴 White.Core.UIItems.WindowItems.Window

GetWindow() 공개 메소드

Get visible window
public GetWindow ( string title, White.Core.Factory.InitializeOption option ) : White.Core.UIItems.WindowItems.Window
title string Title text of window displayed on desktop
option White.Core.Factory.InitializeOption Option which would be used to initialize the window.
리턴 White.Core.UIItems.WindowItems.Window

GetWindows() 공개 메소드

All windows belonging to the application
public GetWindows ( ) : List
리턴 List

Kill() 공개 메소드

Kills the applications and waits till it is closed
public Kill ( ) : void
리턴 void

KillAndSaveState() 공개 메소드

Kills the application. Read Application.Kill. It also saves the application test execution state. This saves the position of the window UIItems which would be loaded next time automatically for improved performance. You would need to use InitializedOption.AndIdentifiedBy for specifying the identification of window.
public KillAndSaveState ( ) : void
리턴 void

Launch() 공개 정적인 메소드

Lauches the process and creates and Application object for it
public static Launch ( ProcessStartInfo processStartInfo ) : Application
processStartInfo System.Diagnostics.ProcessStartInfo
리턴 Application

Launch() 공개 정적인 메소드

Runs the process identified by the executable and creates Application object for this executable
public static Launch ( string executable ) : Application
executable string location of the executable
리턴 Application

WaitWhileBusy() 공개 메소드

Waits till application is busy.
public WaitWhileBusy ( ) : void
리턴 void