New to Telerik Test StudioStart a free 30-day trial

Definition

Constructors

C#
public BaseDialog(Browser parentBrowser, DialogButton dismissButton)
Parameters:parentBrowserBrowserdismissButtonDialogButton
C#
public BaseDialog(WpfApplication application, DialogButton dismissButton)
Parameters:applicationWpfApplicationdismissButtonDialogButton

Fields

C#
protected readonly int m_browserVersionMajor

Properties

C#
public DialogCurrentState CurrentState { get; set; }

Implements: IDialog.CurrentState

C#
public DialogButton DismissButton { get; set; }
C#
public string ErrorText { get; set; }

Implements: IDialog.ErrorText

C#
public int HandleCount { get; set; }

Implements: IDialog.HandleCount

C#
public DialogHandlerDelegate HandlerDelegate { get; set; }

Implements: IDialog.HandlerDelegate

C#
public int InitializationTime { get; set; }

Implements: IDialog.InitializationTime

C#
protected Browser ParentBrowser { get; }
C#
public Func<bool> SkipHandling { get; set; }

Implements: IDialog.SkipHandling

C#
public object[] Tags { get; set; }
C#
public Window Window { get; }

Implements: IDialog.Window

Methods

C#
protected string[] GetFilePaths(string filePaths)
Parameters:filePathsstringReturns:

string[]

C#
public abstract void Handle()

Implements: IDialog.Handle()

C#
public abstract bool IsDialogActive(WindowCollection dialogs)
Parameters:dialogsWindowCollectionReturns:

bool

Implements: IDialog.IsDialogActive(WindowCollection)

C#
protected bool IsDialogActiveByTitle(WindowCollection dialogs, string title, bool partialTitle)
Parameters:dialogsWindowCollectiontitlestringpartialTitleboolReturns:

bool

C#
protected bool IsDialogActiveByTitle(WindowCollection dialogs, string title)
Parameters:dialogsWindowCollectiontitlestringReturns:

bool

C#
protected bool IsDialogActiveByTitleAndTextContent(WindowCollection dialogs, string title, bool partialTitle, string childWindowTextContent)
Parameters:dialogsWindowCollectiontitlestringpartialTitleboolchildWindowTextContentstringReturns:

bool

C#
public static bool IsRejectedViaRegexOrExactMatch(string strActualValue, object regexOrString)
Parameters:strActualValuestringregexOrStringobjectReturns:

bool

C#
public virtual bool MatchesUIAutomationElement(AutomationElement element)
Parameters:elementAutomationElementReturns:

bool

Implements: IDialog.MatchesUIAutomationElement(AutomationElement)

C#
protected virtual void OnBeforeHandle(EventArgs args)
Parameters:argsEventArgs
C#
public void ResetHandleCount()
C#
protected void SetDialogWindow(Window dialogWindow)
Parameters:dialogWindowWindow
C#
public override string ToString()
Returns:

string

Overrides: object.ToString()

C#
protected bool ValidatePaths(string filePathsToSet, out string error)
Parameters:filePathsToSetstringerrorstringReturns:

bool

C#
protected bool ValidatePid(int pid)
Parameters:pidintReturns:

bool

C#
protected bool ValidateReadFileAccess(string filePath, string dialogName, out string error)
Parameters:filePathstringdialogNamestringerrorstringReturns:

bool

C#
public static void WaitUntilAnyHandled(IEnumerable<BaseDialog> dialogs, int handleCount, long timeoutMilliseconds, bool resetHandleCount = false)
Parameters:dialogsIEnumerable<BaseDialog>handleCountinttimeoutMillisecondslongresetHandleCountbool
C#
public void WaitUntilHandled()
C#
public void WaitUntilHandled(int handleCount, int timeout, bool resetHandleCount)
Parameters:handleCountinttimeoutintresetHandleCountbool
C#
public void WaitUntilHandled(int timeout)
Parameters:timeoutint

Events

C#
public event EventHandler BeforeHandle