We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

BrowserWindow.PerformDialogAction Method (BrowserDialogAction, Object)

Searches for a scripted Web dialog and performs the specified action by using the provided parameter value.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

public virtual void PerformDialogAction(
	BrowserDialogAction actionType,
	Object actionParameter
)

Parameters

actionType
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.BrowserDialogAction
A BrowserDialogAction object.
actionParameter
Type: System.Object
An object that provides the parameter for the specified action.

Show: