Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BrowserWindow Class

 

Class representing a Browser Window

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


[CLSCompliantAttribute(true)]
public class BrowserWindow : ApplicationUnderTest

NameDescription
System_CAPS_pubmethodBrowserWindow()

Initializes a new instance of the BrowserWindow class.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticAllowPopups

Gets or sets a value that determines whether the Web browser window allows popup windows.

System_CAPS_pubpropertyAlwaysOnTop

Gets a value that indicates whether the application window always appears on top.(Inherited from ApplicationUnderTest.)

System_CAPS_pubpropertyBoundingRectangle

Gets the Bounding rectangle for this control.(Inherited from UITestControl.)

System_CAPS_pubpropertyClassName

Gets the class name for this control.(Inherited from UITestControl.)

System_CAPS_pubpropertyCloseOnPlaybackCleanup

(Inherited from ApplicationBase.)

System_CAPS_pubpropertyContainer

Gets or sets the container of this UITestControl.(Inherited from UITestControl.)

System_CAPS_pubpropertyControlType

Gets the type of the UI Control.(Inherited from UITestControl.)

System_CAPS_pubpropertySystem_CAPS_staticCurrentBrowser

Gets or sets the current browser from the list of registered browsers.

System_CAPS_pubpropertyCurrentDocumentWindow

Gets the currently active Document Window that is associated with the browser.

System_CAPS_pubpropertyEnabled

Gets a value that indicates whether this control is enabled.(Inherited from UITestControl.)

System_CAPS_pubpropertyExists

Gets a value that indicates whether this control exists on the user interface.(Inherited from UITestControl.)

System_CAPS_pubpropertyFilterProperties

Gets the property-value pair collection that is used to disambiguate a control.(Inherited from UITestControl.)

System_CAPS_pubpropertyFriendlyName

Gets the name of this control to use in the user interface.(Inherited from UITestControl.)

System_CAPS_pubpropertyHasFocus

Gets a value that indicates whether this control currently has the focus in the user interface.(Inherited from UITestControl.)

System_CAPS_pubpropertyHasTitleBar

Gets a value that indicates whether the application window has a title bar.(Inherited from ApplicationUnderTest.)

System_CAPS_pubpropertyHeight

Gets height of the control.(Inherited from UITestControl.)

System_CAPS_pubpropertyIsTopParent

Gets a value that indicates whether this control is the top-level element.(Inherited from UITestControl.)

System_CAPS_pubpropertyLeft

Gets the x-coordinate of the left edge of the control.(Inherited from UITestControl.)

System_CAPS_pubpropertyMaximized

Gets or sets a value that indicates whether the application window is maximized.(Inherited from ApplicationUnderTest.)

System_CAPS_pubpropertyMinimized

Gets or sets a value that indicates whether the application window is minimized.(Inherited from ApplicationUnderTest.)

System_CAPS_pubpropertyName

Gets the name of this control.(Inherited from UITestControl.)

System_CAPS_pubpropertyNativeElement

Gets the native technology element that corresponds to this control.(Inherited from UITestControl.)

System_CAPS_pubpropertyPopup

Gets a value that indicates whether the application window is a pop-up window.(Inherited from ApplicationUnderTest.)

System_CAPS_pubpropertyProcess

Gets or sets the underlying Process object.(Inherited from ApplicationUnderTest.)

System_CAPS_pubpropertyResizable

Gets a value that indicates whether the application window is resizable.(Inherited from ApplicationUnderTest.)

System_CAPS_pubpropertyRestored

Gets or sets a value that indicates whether the application window is restored.(Inherited from ApplicationUnderTest.)

System_CAPS_pubpropertySearchConfigurations

Gets or sets search configurations.(Inherited from UITestControl.)

System_CAPS_pubpropertySearchProperties

Gets the property-value pair collection that is used to identify a control.(Inherited from UITestControl.)

System_CAPS_protpropertySearchPropertiesSetExplicitly

Gets a value that indicates whether the search properties for this control were set by the user in the user interface.(Inherited from UITestControl.)

System_CAPS_pubpropertyShowInTaskbar

Gets a value that indicates whether the program icon appears in the taskbar.(Inherited from ApplicationUnderTest.)

System_CAPS_pubpropertyState

Gets the state of the control.(Inherited from UITestControl.)

System_CAPS_pubpropertyTechnologyName

Gets or sets the technology framework that implements this control.(Inherited from UITestControl.)

System_CAPS_pubpropertyTitle

Gets or sets the title of the application that is under test.(Inherited from ApplicationUnderTest.)

System_CAPS_pubpropertyTop

Gets the x-coordinate of the top edge of the control.(Inherited from UITestControl.)

System_CAPS_pubpropertyTopParent

Gets the top-level parent of this control.(Inherited from UITestControl.)

System_CAPS_pubpropertyTransparent

Gets a value that indicates whether the application window is transparent.(Inherited from ApplicationUnderTest.)

System_CAPS_pubpropertyUri

Gets the URI of the loaded page.

System_CAPS_pubpropertyVersion

Gets the version of the Web browser.

System_CAPS_pubpropertyWidth

Gets width of the control.(Inherited from UITestControl.)

System_CAPS_pubpropertyWindowHandle

Gets the window handle for this control.(Inherited from UITestControl.)

System_CAPS_pubpropertyWindowTitles

Gets a collection of the window titles of the top-level window. (Inherited from UITestControl.)

NameDescription
System_CAPS_pubmethodBack()

Makes the Web browser go back to the previous Web page.

System_CAPS_pubmethodCaptureImage()

Captures the image of the UITestControl. The UITestControl must be present on the screen.(Inherited from UITestControl.)

System_CAPS_pubmethodSystem_CAPS_staticClearCache()

Clears the cache of the Web browser.

System_CAPS_pubmethodSystem_CAPS_staticClearCookies()

Clears the cookies of the Web browser.

System_CAPS_pubmethodClose()

close the browser. (Overrides ApplicationUnderTest.Close().)

System_CAPS_pubmethodCopyFrom(UITestControl)

Creates a user interface (UI) control object that references the same element on the user interface as the original control.(Overrides UITestControl.CopyFrom(UITestControl).)

System_CAPS_pubmethodDispose()

Releases all resources that are used by the ApplicationUnderTest.(Inherited from ApplicationUnderTest.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources that are used by the BrowserWindow and optionally releases the managed resources.(Overrides ApplicationUnderTest.Dispose(Boolean).)

System_CAPS_pubmethodDrawHighlight()

Highlights the control.(Inherited from UITestControl.)

System_CAPS_pubmethodEnsureClickable()

Scrolls the user interface to make sure that the control is clickable.(Inherited from UITestControl.)

System_CAPS_pubmethodEnsureClickable(Point)

Scrolls the user interface to a specific point to make sure that the control is clickable.(Inherited from UITestControl.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified UITestControl is equal to the current UITestControl.(Inherited from UITestControl.)

System_CAPS_pubmethodExecuteScript(String, Object[])

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFind()

Finds this application window in the user interface.(Inherited from ApplicationUnderTest.)

System_CAPS_pubmethodFindMatchingControls()

Returns a collection of all UITestControls that match the specified SearchProperties and FilterProperties.(Inherited from UITestControl.)

System_CAPS_pubmethodForward()

Makes the Web browser go forward to the next page in the history list.

System_CAPS_pubmethodSystem_CAPS_staticFromProcess(Process)

Creates a reference to a Web browser window that is running in an existing process.

System_CAPS_pubmethodGetChildren()

Returns a collection of all first-level children of the current UITestControl.(Inherited from UITestControl.)

System_CAPS_pubmethodGetClickablePoint()

Returns a clickable point on the control.(Inherited from UITestControl.)

System_CAPS_pubmethodGetHashCode()

Returns a unique value that represents the current UITestControl instance.(Inherited from UITestControl.)

System_CAPS_pubmethodGetParent()

Returns the parent of the current UITestControl.(Inherited from UITestControl.)

System_CAPS_pubmethodGetProperty(String)

Gets the value of the specified property.(Inherited from UITestControl.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodGetUITestControlsForSearch()

Returns an array of UITestControl objects that will be used for searching.(Inherited from UITestControl.)

System_CAPS_pubmethodSystem_CAPS_staticLaunch()

Launches a Web browser window and returns the Web browser window object.

System_CAPS_pubmethodSystem_CAPS_staticLaunch(String[])

Launches a Web browser window by using the given array of command-line arguments and returns the browser window object.

System_CAPS_pubmethodSystem_CAPS_staticLaunch(Uri)

Launches a Web browser window by using the given URI and returns the Web browser window object.

System_CAPS_pubmethodSystem_CAPS_staticLocate(String)

Finds a Web browser window by using the window title and returns a corresponding browser window object.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodNavigateToHomepage()

Opens the home page in the Web browser window.

System_CAPS_pubmethodNavigateToUrl(Uri)

Opens the specified Web page in the Web browser.

System_CAPS_pubmethodPerformDialogAction(BrowserDialogAction)

Searches for a scripted Web dialog and performs the specified action.

System_CAPS_pubmethodPerformDialogAction(BrowserDialogAction, Object)

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

System_CAPS_pubmethodRefresh()

Refreshes the Web browser window.

System_CAPS_pubmethodSetFocus()

Sets the keyboard focus to the UITestControl.(Inherited from UITestControl.)

System_CAPS_pubmethodSetProperty(String, Object)

Sets the value of a given property.(Inherited from UITestControl.)

System_CAPS_protmethodShutdown()

Forces the application to shut down.(Inherited from ApplicationUnderTest.)

System_CAPS_pubmethodStopPageLoad()

Stops loading the page in the Web browser window.

System_CAPS_pubmethodToString()

Returns a String that represents the current UITestControl.(Inherited from UITestControl.)

System_CAPS_pubmethodTryFind()

Tries to find the control on the user interface.(Inherited from UITestControl.)

System_CAPS_pubmethodTryGetClickablePoint(Point)

Returns a clickable point in the UITestControl. If the control is not clickable, this method returns false.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlCondition(Predicate<UITestControl>)

Blocks the current thread until this control meets the specified condition, or until the default time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlCondition(Predicate<UITestControl>, Int32)

Blocks the current thread until this control meets the specified condition, or until the specified time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlEnabled()

Blocks the current thread until this control is enabled, or until the default time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlEnabled(Int32)

Blocks the current thread until this control is enabled, or until the specified time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlExist()

Blocks the current thread until this control occurs in the user interface, or until the default time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlExist(Int32)

Blocks the current thread until this control occurs in the user interface, or until the specified time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlNotExist()

Blocks the current thread until this control no longer is in the user interface, or until the default time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlNotExist(Int32)

Blocks the current thread until this control no longer occurs in the user interface, or until the specified time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlPropertyEqual(String, Object)

Blocks the current thread until the specified property of this control is equal to the specified value, or until the default time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlPropertyEqual(String, Object, Int32)

Blocks the current thread until the specified property of this control is equal to the specified value, or until the specified time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlPropertyNotEqual(String, Object)

Blocks the current thread until the specified property of this control is not equal to the specified value, or until the default time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlPropertyNotEqual(String, Object, Int32)

Blocks the current thread until the specified property of this control is not equal to the specified value, or until the specified time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlReady()

Blocks the current thread until this control is ready to receive mouse or keyboard input, or until the default time-out expires.(Inherited from UITestControl.)

System_CAPS_pubmethodWaitForControlReady(Int32)

Blocks the current thread until this control is ready to receive mouse or keyboard input, or until the specified time-out expires.(Inherited from UITestControl.)

No content here will be updated; please do not add material here.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: