skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Free Tools
    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
    • Functional UI Testing
    • RESTful API Testing
    • Load Testing
    • Remote Test Execution
    • Agile Teams
    • Web Test Automation
    • Desktop Test Automation
    • Responsive UI Testing
    • Continuous Testing
    • Test Studio Trainings
    • Test Studio Consulting
    • Docs and Support
    • Documentation
    • Virtual Classroom
    • Videos
    • Blogs
    • Webinars
    • Whitepapers
    • Case Studies
    • Feedback Portal
    • Technical Support
    • What’s New
    • Roadmap
    • Release Notes
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Request a demo Try now

Class BaseDialog

Inheritance
System.Object
BaseDialog
AlertDialog
ConfirmDialog
DownloadNotificationBar
FFOpenDownloadDialog
FileUploadDialog
GenericDialog
IEDownloadCompleteDialog
IEDownloadDialog
LogonDialog
OnBeforeUnloadDialog
OpenFileDialog
PromptDialog
SafariDownloadDialog
SaveAsDialog
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
IDialog.CurrentState

DismissButton

Declaration
public DialogButton DismissButton { get; set; }
Property Value
DialogButton

ErrorText

Declaration
public string ErrorText { get; set; }
Property Value
System.String

Implements
IDialog.ErrorText

HandleCount

Declaration
public int HandleCount { get; set; }
Property Value
System.Int32

Implements
IDialog.HandleCount

HandlerDelegate

Declaration
public DialogHandlerDelegate HandlerDelegate { get; set; }
Property Value
DialogHandlerDelegate

Implements
IDialog.HandlerDelegate

InitializationTime

Declaration
public int InitializationTime { get; set; }
Property Value
System.Int32

Implements
IDialog.InitializationTime

ParentBrowser

Declaration
protected Browser ParentBrowser { get; }
Property Value
Browser

SkipHandling

Declaration
public Func<bool> SkipHandling { get; set; }
Property Value
System.Func<System.Boolean>

Implements
IDialog.SkipHandling

Tags

Declaration
public object[] Tags { get; set; }
Property Value
System.Object[]

Window

Declaration
public Window Window { get; }
Property Value
Window

Implements
IDialog.Window

Methods

Handle()

Declaration
public abstract void Handle()
Implements
IDialog.Handle()

IsDialogActive(WindowCollection)

Declaration
public abstract bool IsDialogActive(WindowCollection dialogs)
Parameters
WindowCollection dialogs

Returns
System.Boolean

Implements
IDialog.IsDialogActive(WindowCollection)

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
IDialog.MatchesUIAutomationElement(AutomationElement)

OnBeforeHandle(EventArgs)

Declaration
protected virtual void OnBeforeHandle(EventArgs args)
Parameters
System.EventArgs args

ResetHandleCount()

Declaration
public void ResetHandleCount()

SetDialogWindow(Window)

Declaration
protected void SetDialogWindow(Window dialogWindow)
Parameters
Window dialogWindow

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

Getting Started
  • Getting Started
  • Videos
  • Whats New
  • Roadmap
Community
  • Forums
  • Blogs
  • Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.