BrowserWindow Class

Class representing a Browser Window

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.ApplicationBase
      Microsoft.VisualStudio.TestTools.UITesting.ApplicationUnderTest
        Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow

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

Syntax

'Declaration
<CLSCompliantAttribute(True)> _
Public Class BrowserWindow _
    Inherits ApplicationUnderTest
[CLSCompliantAttribute(true)]
public class BrowserWindow : ApplicationUnderTest
[CLSCompliantAttribute(true)]
public ref class BrowserWindow : public ApplicationUnderTest
[<CLSCompliantAttribute(true)>]
type BrowserWindow =  
    class 
        inherit ApplicationUnderTest 
    end
public class BrowserWindow extends ApplicationUnderTest

The BrowserWindow type exposes the following members.

Constructors

  Name Description
Public method BrowserWindow

Top

Properties

  Name Description
Public propertyStatic member AllowPopups
Public property AlwaysOnTop Gets a value that indicates whether the application window always appears on top. (Inherited from ApplicationUnderTest.)
Public property BoundingRectangle (Inherited from UITestControl.)
Public property ClassName (Inherited from UITestControl.)
Public property CloseOnPlaybackCleanup (Inherited from ApplicationBase.)
Public property Container (Inherited from UITestControl.)
Public property ControlType (Inherited from UITestControl.)
Public propertyStatic member CurrentBrowser
Public property CurrentDocumentWindow
Public property Enabled (Inherited from UITestControl.)
Public property Exists (Inherited from UITestControl.)
Public property FilterProperties (Inherited from UITestControl.)
Public property FriendlyName (Inherited from UITestControl.)
Public property HasFocus (Inherited from UITestControl.)
Public property HasTitleBar Gets a value that indicates whether the application window has a title bar. (Inherited from ApplicationUnderTest.)
Public property Height (Inherited from UITestControl.)
Public property IsTopParent (Inherited from UITestControl.)
Public property Left (Inherited from UITestControl.)
Public property Maximized Gets or sets a value that indicates whether the application window is maximized. (Inherited from ApplicationUnderTest.)
Public property Minimized Gets or sets a value that indicates whether the application window is minimized. (Inherited from ApplicationUnderTest.)
Public property Name (Inherited from UITestControl.)
Public property NativeElement (Inherited from UITestControl.)
Public property Popup Gets a value that indicates whether the application window is a pop-up window. (Inherited from ApplicationUnderTest.)
Public property Process Gets or sets the underlying Process object. (Inherited from ApplicationUnderTest.)
Public property Resizable Gets a value that indicates whether the application window is resizable. (Inherited from ApplicationUnderTest.)
Public property Restored Gets or sets a value that indicates whether the application window is restored. (Inherited from ApplicationUnderTest.)
Public property SearchConfigurations (Inherited from UITestControl.)
Public property SearchProperties (Inherited from UITestControl.)
Protected property SearchPropertiesSetExplicitly (Inherited from UITestControl.)
Public property ShowInTaskbar Gets a value that indicates whether the program icon appears in the taskbar. (Inherited from ApplicationUnderTest.)
Public property State (Inherited from UITestControl.)
Public property TechnologyName (Inherited from UITestControl.)
Public property Title Gets or sets the title of the application that is under test. (Inherited from ApplicationUnderTest.)
Public property Top (Inherited from UITestControl.)
Public property TopParent (Inherited from UITestControl.)
Public property Transparent Gets a value that indicates whether the application window is transparent. (Inherited from ApplicationUnderTest.)
Public property Uri
Public property Version
Public property Width (Inherited from UITestControl.)
Public property WindowHandle (Inherited from UITestControl.)
Public property WindowTitles (Inherited from UITestControl.)

Top

Methods

  Name Description
Public method Back
Public method CaptureImage (Inherited from UITestControl.)
Public methodStatic member ClearCache
Public methodStatic member ClearCookies
Public method Close close the browser. (Overrides ApplicationUnderTest.Close().)
Public method CopyFrom (Overrides UITestControl.CopyFrom(UITestControl).)
Public method Dispose() Releases all resources that are used by the ApplicationUnderTest. (Inherited from ApplicationUnderTest.)
Protected method Dispose(Boolean) (Overrides ApplicationUnderTest.Dispose(Boolean).)
Public method DrawHighlight (Inherited from UITestControl.)
Public method EnsureClickable() (Inherited from UITestControl.)
Public method EnsureClickable(Point) (Inherited from UITestControl.)
Public method Equals (Inherited from UITestControl.)
Public method ExecuteScript
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Find Finds this application window in the user interface. (Inherited from ApplicationUnderTest.)
Public method FindMatchingControls (Inherited from UITestControl.)
Public method Forward
Public methodStatic member FromProcess
Public method GetChildren (Inherited from UITestControl.)
Public method GetClickablePoint (Inherited from UITestControl.)
Public method GetHashCode (Inherited from UITestControl.)
Public method GetParent (Inherited from UITestControl.)
Public method GetProperty (Inherited from UITestControl.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method GetUITestControlsForSearch (Inherited from UITestControl.)
Public methodStatic member Launch()
Public methodStatic member Launch(array<String[])
Public methodStatic member Launch(Uri)
Public methodStatic member Locate
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method NavigateToHomepage
Public method NavigateToUrl
Public method PerformDialogAction(BrowserDialogAction)
Public method PerformDialogAction(BrowserDialogAction, Object)
Public method Refresh
Public method SetFocus (Inherited from UITestControl.)
Public method SetProperty (Inherited from UITestControl.)
Protected method Shutdown Forces the application to shut down. (Inherited from ApplicationUnderTest.)
Public method StopPageLoad
Public method ToString (Inherited from UITestControl.)
Public method TryFind (Inherited from UITestControl.)
Public method TryGetClickablePoint(Point%) (Inherited from UITestControl.)
Public method WaitForControlCondition(Predicate<UITestControl>) (Inherited from UITestControl.)
Public method WaitForControlCondition(Predicate<UITestControl>, Int32) (Inherited from UITestControl.)
Public method WaitForControlEnabled() (Inherited from UITestControl.)
Public method WaitForControlEnabled(Int32) (Inherited from UITestControl.)
Public method WaitForControlExist() (Inherited from UITestControl.)
Public method WaitForControlExist(Int32) (Inherited from UITestControl.)
Public method WaitForControlNotExist() (Inherited from UITestControl.)
Public method WaitForControlNotExist(Int32) (Inherited from UITestControl.)
Public method WaitForControlPropertyEqual(String, Object) (Inherited from UITestControl.)
Public method WaitForControlPropertyEqual(String, Object, Int32) (Inherited from UITestControl.)
Public method WaitForControlPropertyNotEqual(String, Object) (Inherited from UITestControl.)
Public method WaitForControlPropertyNotEqual(String, Object, Int32) (Inherited from UITestControl.)
Public method WaitForControlReady() (Inherited from UITestControl.)
Public method WaitForControlReady(Int32) (Inherited from UITestControl.)

Top

Remarks

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

Thread Safety

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

See Also

Reference

Microsoft.VisualStudio.TestTools.UITesting Namespace