ClassWpfApplication
Actions for automating WPF applications.
Definition
Namespace:ArtOfTest.WebAii.Wpf
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class WpfApplication
Inheritance: objectWpfApplication
Properties
AppFileName
Gets the application file name
HasExited
Indicates whether application under test exited.
MainWindow
Application main window.
Manager
The Manager object that owns this application
Pid
The application's process id
Process
Application under test process.
QuitOnDetach
Whether to close all of this application's windows when the testing framework detaches from the application.
Methods
Detach(bool)
Detach the current application.
Declaration
public void Detach(bool quitOnDetach)
Parameters
quitOnDetach
Close the application under test.
GetWindow(string)
Given a window caption get the corresponding window object.
Quit()
Detach the current application and kill application under test.
Declaration
public void Quit()
WaitForWindow(string)
Wait for a window to show up and be ready for automation. Uses the Settings.ClientReadyTimeout
WaitForWindow(string, int)
Wait for a window to show up and be ready for automation
Events
NewWindow
Fired when new window is detected.
Declaration
public event EventHandler<GenericEventArgs<WpfWindow>> NewWindow
Event Value