Class Manager
Inheritance
Inherited Members
Namespace: ArtOfTest.WebAii.Core
Assembly: ArtOfTest.WebAii.dll
Syntax
public class Manager : IDisposableWithState, IDisposable
Constructors
Manager(Settings)
Manager(Boolean)
Declaration
public Manager(bool useConfig)
Parameters
System.Boolean
useConfig
|
Properties
ActiveApplication
ActiveBrowser
ActiveDesktopApplication
Declaration
public DesktopApplication ActiveDesktopApplication { get; }
Property Value
DesktopApplication
|
Applications
Declaration
public IList<WpfApplication> Applications { get; }
Property Value
System.Collections.Generic.IList<WpfApplication>
|
Browsers
Declaration
public ReadOnlyCollection<Browser> Browsers { get; }
Property Value
System.Collections.ObjectModel.ReadOnlyCollection<Browser>
|
Current
Desktop
DesktopApplications
Declaration
public DesktopApplication[] DesktopApplications { get; }
Property Value
DesktopApplication[]
|
DialogMonitor
Disposed
Declaration
public bool Disposed { get; }
Property Value
System.Boolean
|
Elements
ErrorStatus
Declaration
public string ErrorStatus { get; set; }
Property Value
System.String
|
Http
Log
PipeName
Declaration
public string PipeName { get; }
Property Value
System.String
|
Settings
Wait
Methods
AddNewBrowser(Browser)
AddPdfPortToUrlIfNeeded(String)
Declaration
public string AddPdfPortToUrlIfNeeded(string baseUrl)
Parameters
System.String
baseUrl
|
Returns
System.String
|
ClearMappingsOverride(Type)
Declaration
public static void ClearMappingsOverride(Type controlType)
Parameters
System.Type
controlType
|
ConfigureBrowser(BrowserType, out String)
Declaration
public bool ConfigureBrowser(BrowserType browser, out string error)
Parameters
BrowserType
browser
|
System.String
error
|
Returns
System.Boolean
|
ConnectToApplication(Process, String)
Declaration
public WpfApplication ConnectToApplication(Process proc, string pid = null)
Parameters
System.Diagnostics.Process
proc
|
System.String
pid
|
Returns
WpfApplication
|
ConnectToDesktopApplication(Process, Int32)
Declaration
public DesktopApplication ConnectToDesktopApplication(Process process, int timeout = 5000)
Parameters
System.Diagnostics.Process
process
|
System.Int32
timeout
|
Returns
DesktopApplication
|
ConnectToDesktopApplication(String, Int32, Int32)
Declaration
public DesktopApplication ConnectToDesktopApplication(string processName, int processIndex = 0, int timeout = 5000)
Parameters
System.String
processName
|
System.Int32
processIndex
|
System.Int32
timeout
|
Returns
DesktopApplication
|
Dispose()
Declaration
public void Dispose()
Implements
Finalize()
Declaration
protected void Finalize()
GetBrowserConfigurationStatus(BrowserType)
Declaration
public BrowserConfigurationStatus GetBrowserConfigurationStatus(BrowserType browser)
Parameters
BrowserType
browser
|
Returns
BrowserConfigurationStatus
|
LaunchNewApplication(ProcessStartInfo)
Declaration
public WpfApplication LaunchNewApplication(ProcessStartInfo pinfo)
Parameters
System.Diagnostics.ProcessStartInfo
pinfo
|
Returns
WpfApplication
|
LaunchNewApplication(String, String[])
Declaration
public WpfApplication LaunchNewApplication(string path, params string[] args)
Parameters
System.String
path
|
System.String[]
args
|
Returns
WpfApplication
|
LaunchNewBrowser()
Declaration
public void LaunchNewBrowser()
LaunchNewBrowser(BrowserType)
Declaration
public void LaunchNewBrowser(BrowserType browserToLaunch)
Parameters
BrowserType
browserToLaunch
|
LaunchNewBrowser(BrowserType, Boolean)
Declaration
public void LaunchNewBrowser(BrowserType browserToLaunch, bool waitForBrowserToConnect)
Parameters
BrowserType
browserToLaunch
|
System.Boolean
waitForBrowserToConnect
|
LaunchNewBrowser(BrowserType, Boolean, ProcessWindowStyle)
Declaration
public void LaunchNewBrowser(BrowserType browserToLaunch, bool waitForBrowserToConnect, ProcessWindowStyle windowStyle)
Parameters
BrowserType
browserToLaunch
|
System.Boolean
waitForBrowserToConnect
|
System.Diagnostics.ProcessWindowStyle
windowStyle
|
LaunchNewBrowser(BrowserType, Boolean, ProcessWindowStyle, String)
Declaration
public void LaunchNewBrowser(BrowserType browserToLaunch, bool waitForBrowserToConnect, ProcessWindowStyle windowStyle, string arguments)
Parameters
BrowserType
browserToLaunch
|
System.Boolean
waitForBrowserToConnect
|
System.Diagnostics.ProcessWindowStyle
windowStyle
|
System.String
arguments
|
LaunchNewBrowser(ProcessWindowStyle)
Declaration
public void LaunchNewBrowser(ProcessWindowStyle windowStyle)
Parameters
System.Diagnostics.ProcessWindowStyle
windowStyle
|
LaunchNewBrowser(ProcessWindowStyle, String)
Declaration
public void LaunchNewBrowser(ProcessWindowStyle windowStyle, string arguments)
Parameters
System.Diagnostics.ProcessWindowStyle
windowStyle
|
System.String
arguments
|
LaunchNewDesktopApplication(String, String, Int32)
Declaration
public DesktopApplication LaunchNewDesktopApplication(string path, string arguments = null, int timeout = 5000)
Parameters
System.String
path
|
System.String
arguments
|
System.Int32
timeout
|
Returns
DesktopApplication
|
LaunchNewDesktopApplicationFromStore(String, String, Int32, Int32)
Declaration
public DesktopApplication LaunchNewDesktopApplicationFromStore(string appUserModelId, string arguments = null, int timeout = 20000, int initDelay = 1000)
Parameters
System.String
appUserModelId
|
System.String
arguments
|
System.Int32
timeout
|
System.Int32
initDelay
|
Returns
DesktopApplication
|
RegisterMappingsOverride(MappingsCollection, Type)
Declaration
public static void RegisterMappingsOverride(MappingsCollection mappingsToOverride, Type controlType)
Parameters
MappingsCollection
mappingsToOverride
|
System.Type
controlType
|
RemoveBrowser(String)
Declaration
public void RemoveBrowser(string clientId)
Parameters
System.String
clientId
|
SetNewBrowserTracking(Boolean)
Declaration
public void SetNewBrowserTracking(bool enable)
Parameters
System.Boolean
enable
|
Start()
Declaration
public void Start()
UndoBrowserConfiguration(BrowserType, out String)
Declaration
public bool UndoBrowserConfiguration(BrowserType browser, out string error)
Parameters
BrowserType
browser
|
System.String
error
|
Returns
System.Boolean
|
WaitForNewBrowserConnect(String, Boolean, Int32)
Declaration
public void WaitForNewBrowserConnect(string url, bool isPartial, int timeout)
Parameters
System.String
url
|
System.Boolean
isPartial
|
System.Int32
timeout
|
WaitForNewBrowserConnect(String, Boolean, String, Int32)
Declaration
public void WaitForNewBrowserConnect(string url, bool isPartial, string partialCaption, int timeout)
Parameters
System.String
url
|
System.Boolean
isPartial
|
System.String
partialCaption
|
System.Int32
timeout
|
Events
ActiveBrowserChanged
Declaration
public event Manager.ActiveBrowserChangedHandler ActiveBrowserChanged
Event Type
Manager.ActiveBrowserChangedHandler
|