Class
LogonDialog

Class to handle the logon dialog (username/password)

Definition

Namespace:ArtOfTest.WebAii.Win32.Dialogs

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class LogonDialog : BaseDialog, IDialog

Inheritance: objectBaseDialogLogonDialog

Implements: IDialog

Inherited Members BaseDialog.m_browserVersionMajorBaseDialog.ValidatePid(int)BaseDialog.ValidateReadFileAccess(string, string, out string)BaseDialog.ValidatePaths(string, out string)BaseDialog.GetFilePaths(string)BaseDialog.SetDialogWindow(Window)BaseDialog.IsDialogActiveByTitle(WindowCollection, string)BaseDialog.IsDialogActiveByTitle(WindowCollection, string, bool)BaseDialog.IsRejectedViaRegexOrExactMatch(string, object)BaseDialog.IsDialogActiveByTitleAndTextContent(WindowCollection, string, bool, string)BaseDialog.ResetHandleCount()BaseDialog.WaitUntilHandled(int)BaseDialog.WaitUntilHandled()BaseDialog.WaitUntilHandled(int, int, bool)BaseDialog.WaitUntilAnyHandled(IEnumerable<BaseDialog>, int, long, bool)BaseDialog.OnBeforeHandle(EventArgs)BaseDialog.ParentBrowserBaseDialog.ErrorTextBaseDialog.CurrentStateBaseDialog.WindowBaseDialog.HandleCountBaseDialog.HandlerDelegateBaseDialog.DismissButtonBaseDialog.SkipHandlingBaseDialog.TagsBaseDialog.InitializationTimeBaseDialog.BeforeHandle

Constructors

LogonDialog(Browser, string, string, DialogButton)

Create a new LogonDialog handler.

Declaration

cs-api-definition
public LogonDialog(Browser parentBrowser, string userName, string password, DialogButton dismissButton)

Parameters

parentBrowser

Browser

The parent browser.

userName

string

The username to set.

password

string

The password to set.

dismissButton

DialogButton

The button to use to dismiss this dialog.

Properties

Password

Gets/Sets Password

Declaration

cs-api-definition
public string Password { get; set; }

Property Value

string

UserName

Gets/Sets UserName

Declaration

cs-api-definition
public string UserName { get; set; }

Property Value

string

Methods

CreateLogonDialog(Browser, string, string, DialogButton)

Create a new LogonDialog handler.

Declaration

cs-api-definition
public static LogonDialog CreateLogonDialog(Browser parentBrowser, string userName, string password, DialogButton dismissButton)

Parameters

parentBrowser

Browser

The parent browser.

userName

string

The username to set.

password

string

The password to set.

dismissButton

DialogButton

The button to use to dismiss this dialog.

Returns

LogonDialog

A new LogonDialog handler

Handle()

Handle this dialog.

Declaration

cs-api-definition
public override void Handle()

Overrides BaseDialog.Handle()

Implements IDialog.Handle()

IsDialogActive(WindowCollection)

Whether this dialog is active or not.

Declaration

cs-api-definition
public override bool IsDialogActive(WindowCollection dialogs)

Parameters

dialogs

WindowCollection

The list of dialogs to check.

Returns

bool

True/False whether this dialog is active or not.

Overrides BaseDialog.IsDialogActive(WindowCollection)

Implements IDialog.IsDialogActive(WindowCollection)

MatchesUIAutomationElement(AutomationElement)

Matches UI automation element.

Declaration

cs-api-definition
public override bool MatchesUIAutomationElement(AutomationElement element)

Parameters

element

AutomationElement

The element to check against.

Returns

bool

Overrides BaseDialog.MatchesUIAutomationElement(AutomationElement)

Implements IDialog.MatchesUIAutomationElement(AutomationElement)

ToString()

Returns a string that represents the current object.

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides BaseDialog.ToString()