Class BaseDialog
Inheritance
System.Object
BaseDialog
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ArtOfTest.WebAii.Win32.Dialogs
Assembly: ArtOfTest.WebAii.dll
Syntax
public abstract class BaseDialog : IDialog
Constructors
BaseDialog(Browser, DialogButton)
Declaration
public BaseDialog(Browser parentBrowser, DialogButton dismissButton)
Parameters
Browser
parentBrowser
|
DialogButton
dismissButton
|
BaseDialog(WpfApplication, DialogButton)
Declaration
public BaseDialog(WpfApplication application, DialogButton dismissButton)
Parameters
WpfApplication
application
|
DialogButton
dismissButton
|
Fields
m_browserVersionMajor
Declaration
protected readonly int m_browserVersionMajor
Field Value
System.Int32
|
Properties
CurrentState
Declaration
public DialogCurrentState CurrentState { get; set; }
Property Value
DialogCurrentState
|
Implements
DismissButton
ErrorText
Declaration
public string ErrorText { get; set; }
Property Value
System.String
|
Implements
HandleCount
Declaration
public int HandleCount { get; set; }
Property Value
System.Int32
|
Implements
HandlerDelegate
Declaration
public DialogHandlerDelegate HandlerDelegate { get; set; }
Property Value
DialogHandlerDelegate
|
Implements
InitializationTime
Declaration
public int InitializationTime { get; set; }
Property Value
System.Int32
|
Implements
ParentBrowser
SkipHandling
Declaration
public Func<bool> SkipHandling { get; set; }
Property Value
System.Func<System.Boolean>
|
Implements
Tags
Declaration
public object[] Tags { get; set; }
Property Value
System.Object[]
|
Window
Methods
Handle()
IsDialogActive(WindowCollection)
Declaration
public abstract bool IsDialogActive(WindowCollection dialogs)
Parameters
WindowCollection
dialogs
|
Returns
System.Boolean
|
Implements
IsDialogActiveByTitle(WindowCollection, String)
Declaration
protected bool IsDialogActiveByTitle(WindowCollection dialogs, string title)
Parameters
WindowCollection
dialogs
|
System.String
title
|
Returns
System.Boolean
|
IsDialogActiveByTitle(WindowCollection, String, Boolean)
Declaration
protected bool IsDialogActiveByTitle(WindowCollection dialogs, string title, bool partialTitle)
Parameters
WindowCollection
dialogs
|
System.String
title
|
System.Boolean
partialTitle
|
Returns
System.Boolean
|
IsDialogActiveByTitleAndTextContent(WindowCollection, String, Boolean, String)
Declaration
protected bool IsDialogActiveByTitleAndTextContent(WindowCollection dialogs, string title, bool partialTitle, string childWindowTextContent)
Parameters
WindowCollection
dialogs
|
System.String
title
|
System.Boolean
partialTitle
|
System.String
childWindowTextContent
|
Returns
System.Boolean
|
IsRejectedViaRegexOrExactMatch(String, Object)
Declaration
public static bool IsRejectedViaRegexOrExactMatch(string strActualValue, object regexOrString)
Parameters
System.String
strActualValue
|
System.Object
regexOrString
|
Returns
System.Boolean
|
MatchesUIAutomationElement(AutomationElement)
Declaration
public virtual bool MatchesUIAutomationElement(AutomationElement element)
Parameters
System.Windows.Automation.AutomationElement
element
|
Returns
System.Boolean
|
Implements
OnBeforeHandle(EventArgs)
Declaration
protected virtual void OnBeforeHandle(EventArgs args)
Parameters
System.EventArgs
args
|
ResetHandleCount()
Declaration
public void ResetHandleCount()
SetDialogWindow(Window)
ToString()
Declaration
public override string ToString()
Returns
System.String
|
Overrides
System.Object.ToString()
ValidatePid(Int32)
Declaration
protected bool ValidatePid(int pid)
Parameters
System.Int32
pid
|
Returns
System.Boolean
|
WaitUntilAnyHandled(IEnumerable<BaseDialog>, Int32, Int64, Boolean)
Declaration
public static void WaitUntilAnyHandled(IEnumerable<BaseDialog> dialogs, int handleCount, long timeoutMilliseconds, bool resetHandleCount = false)
Parameters
System.Collections.Generic.IEnumerable<BaseDialog>
dialogs
|
System.Int32
handleCount
|
System.Int64
timeoutMilliseconds
|
System.Boolean
resetHandleCount
|
WaitUntilHandled()
Declaration
public void WaitUntilHandled()
WaitUntilHandled(Int32)
Declaration
public void WaitUntilHandled(int timeout)
Parameters
System.Int32
timeout
|
WaitUntilHandled(Int32, Int32, Boolean)
Declaration
public void WaitUntilHandled(int handleCount, int timeout, bool resetHandleCount)
Parameters
System.Int32
handleCount
|
System.Int32
timeout
|
System.Boolean
resetHandleCount
|
Events
BeforeHandle
Declaration
public event EventHandler BeforeHandle
Event Type
System.EventHandler
|