Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents a Web browser window in the test framework of vstsEssTest.
Inheritance Hierarchy
Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    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 | |
|---|---|---|
| .gif) | BrowserWindow | Initializes a new instance of the BrowserWindow class. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) .gif) | AllowPopups | Gets or sets a value that determines whether the Web browser window allows popup windows. | 
| .gif) | AlwaysOnTop | Gets a value that indicates whether the application window always appears on top. (Inherited from ApplicationUnderTest.) | 
| .gif) | BoundingRectangle | Gets the Bounding rectangle for this control. (Inherited from UITestControl.) | 
| .gif) | ClassName | Gets the class name for this control. (Inherited from UITestControl.) | 
| .gif) | CloseOnPlaybackCleanup | Gets or Sets whether to close the ApplicationUnderTest automatically at playback cleanup. (Inherited from ApplicationUnderTest.) | 
| .gif) | Container | Gets or sets the container of this UITestControl. (Inherited from UITestControl.) | 
| .gif) | ControlType | Gets the type of the UI Control. (Inherited from UITestControl.) | 
| .gif) .gif) | CurrentBrowser | Gets or sets the current browser from the list of registered browsers. | 
| .gif) | CurrentDocumentWindow | Gets the currently active Document Window that is associated with the browser. | 
| .gif) | Enabled | Gets a value that indicates whether this control is enabled. (Inherited from UITestControl.) | 
| .gif) | Exists | Gets a value that indicates whether this control exists on the user interface. (Inherited from UITestControl.) | 
| .gif) | FilterProperties | Gets the property-value pair collection that is used to disambiguate a control. (Inherited from UITestControl.) | 
| .gif) | FriendlyName | Gets the name of this control to use in the user interface. (Inherited from UITestControl.) | 
| .gif) | HasFocus | Gets a value that indicates whether this control currently has the focus in the user interface. (Inherited from UITestControl.) | 
| .gif) | HasTitleBar | Gets a value that indicates whether the application window has a title bar. (Inherited from ApplicationUnderTest.) | 
| .gif) | Height | Gets height of the control. (Inherited from UITestControl.) | 
| .gif) | IsTopParent | Gets a value that indicates whether this control is the top-level element. (Inherited from UITestControl.) | 
| .gif) | Left | Gets the x-coordinate of the left edge of the control. (Inherited from UITestControl.) | 
| .gif) | Maximized | Gets or sets a value that indicates whether the application window is maximized. (Inherited from ApplicationUnderTest.) | 
| .gif) | Minimized | Gets or sets a value that indicates whether the application window is minimized. (Inherited from ApplicationUnderTest.) | 
| .gif) | Name | Gets the name of this control. (Inherited from UITestControl.) | 
| .gif) | NativeElement | Gets the native technology element that corresponds to this control. (Inherited from UITestControl.) | 
| .gif) | Popup | Gets a value that indicates whether the application window is a pop-up window. (Inherited from ApplicationUnderTest.) | 
| .gif) | Process | Gets or sets the underlying Process object. (Inherited from ApplicationUnderTest.) | 
| .gif) | Resizable | Gets a value that indicates whether the application window is resizable. (Inherited from ApplicationUnderTest.) | 
| .gif) | Restored | Gets or sets a value that indicates whether the application window is restored. (Inherited from ApplicationUnderTest.) | 
| .gif) | SearchConfigurations | Gets or sets search configurations. (Inherited from UITestControl.) | 
| .gif) | SearchProperties | Gets the property-value pair collection that is used to identify a control. (Inherited from UITestControl.) | 
| .gif) | SearchPropertiesSetExplicitly | Gets a value that indicates whether the search properties for this control were set by the user in the user interface. (Inherited from UITestControl.) | 
| .gif) | ShowInTaskbar | Gets a value that indicates whether the program icon appears in the taskbar. (Inherited from ApplicationUnderTest.) | 
| .gif) | State | Gets the state of the control. (Inherited from UITestControl.) | 
| .gif) | TechnologyName | Gets or sets the technology framework that implements this control. (Inherited from UITestControl.) | 
| .gif) | Title | Gets or sets the title of the application that is under test. (Inherited from ApplicationUnderTest.) | 
| .gif) | Top | Gets the x-coordinate of the top edge of the control. (Inherited from UITestControl.) | 
| .gif) | TopParent | Gets the top-level parent of this control. (Inherited from UITestControl.) | 
| .gif) | Transparent | Gets a value that indicates whether the application window is transparent. (Inherited from ApplicationUnderTest.) | 
| .gif) | Uri | Gets the URI of the loaded page. | 
| .gif) | Version | Gets the version of the Web browser. | 
| .gif) | Width | Gets width of the control. (Inherited from UITestControl.) | 
| .gif) | WindowHandle | Gets the window handle for this control. (Inherited from UITestControl.) | 
| .gif) | WindowTitles | Gets a collection of the window titles of the top-level window. (Inherited from UITestControl.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Back | Makes the Web browser go back to the previous Web page. | 
| .gif) | CaptureImage | Captures the image of the UITestControl. The UITestControl must be present on the screen. (Inherited from UITestControl.) | 
| .gif) .gif) | ClearCache | Clears the cache of the Web browser. | 
| .gif) .gif) | ClearCookies | Clears the cookies of the Web browser. | 
| .gif) | Close | (Overrides ApplicationUnderTest.Close().) | 
| .gif) | CopyFrom | Creates a user interface (UI) control object that references the same element on the user interface as the original control. (Overrides UITestControl.CopyFrom(UITestControl).) | 
| .gif) | Dispose() | Releases all resources that are used by the ApplicationUnderTest. (Inherited from ApplicationUnderTest.) | 
| .gif) | Dispose(Boolean) | Releases the unmanaged resources that are used by the BrowserWindow and optionally releases the managed resources. (Overrides ApplicationUnderTest.Dispose(Boolean).) | 
| .gif) | DrawHighlight | Highlights the control. (Inherited from UITestControl.) | 
| .gif) | EnsureClickable() | Scrolls the user interface to make sure that the control is clickable. (Inherited from UITestControl.) | 
| .gif) | EnsureClickable(Point) | Scrolls the user interface to a specific point to make sure that the control is clickable. (Inherited from UITestControl.) | 
| .gif) | Equals | Determines whether the specified UITestControl is equal to the current UITestControl. (Inherited from UITestControl.) | 
| .gif) | ExecuteScript | |
| .gif) | Finalize | Finalizer for ApplicationUnderTest. (Inherited from ApplicationUnderTest.) | 
| .gif) | Find | Finds this application window in the user interface. (Inherited from ApplicationUnderTest.) | 
| .gif) | FindMatchingControls | Returns a collection of all UITestControls that match the specified SearchProperties and FilterProperties. (Inherited from UITestControl.) | 
| .gif) | Forward | Makes the Web browser go forward to the next page in the history list. | 
| .gif) .gif) | FromProcess | Creates a reference to a Web browser window that is running in an existing process. | 
| .gif) | GetChildren | Returns a collection of all first-level children of the current UITestControl. (Inherited from UITestControl.) | 
| .gif) | GetClickablePoint | Returns a clickable point on the control. (Inherited from UITestControl.) | 
| .gif) | GetHashCode | Returns a unique value that represents the current UITestControl instance. (Inherited from UITestControl.) | 
| .gif) | GetParent | Returns the parent of the current UITestControl. (Inherited from UITestControl.) | 
| .gif) | GetProperty | Gets the value of the specified property. (Inherited from UITestControl.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | GetUITestControlsForSearch | Returns an array of UITestControl objects that will be used for searching. (Inherited from UITestControl.) | 
| .gif) .gif) | Launch() | Launches a Web browser window and returns the Web browser window object. | 
| .gif) .gif) | Launch(array<String[]) | Launches a Web browser window by using the given array of command-line arguments and returns the browser window object. | 
| .gif) .gif) | Launch(Uri) | Launches a Web browser window by using the given URI and returns the Web browser window object. | 
| .gif) .gif) | Locate | Finds a Web browser window by using the window title and returns a corresponding browser window object. | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | NavigateToHomepage | Opens the home page in the Web browser window. | 
| .gif) | NavigateToUrl | Opens the specified Web page in the Web browser. | 
| .gif) | PerformDialogAction(BrowserDialogAction) | Searches for a scripted Web dialog and performs the specified action. | 
| .gif) | PerformDialogAction(BrowserDialogAction, Object) | Searches for a scripted Web dialog and performs the specified action by using the provided parameter value. | 
| .gif) | Refresh | Refreshes the Web browser window. | 
| .gif) | SetFocus | Sets the keyboard focus to the UITestControl. (Inherited from UITestControl.) | 
| .gif) | SetProperty | Sets the value of a given property. (Inherited from UITestControl.) | 
| .gif) | Shutdown | Forces the application to shut down. (Inherited from ApplicationUnderTest.) | 
| .gif) | StopPageLoad | Stops loading the page in the Web browser window. | 
| .gif) | ToString | Returns a String that represents the current UITestControl. (Inherited from UITestControl.) | 
| .gif) | TryFind | Tries to find the control on the user interface. (Inherited from UITestControl.) | 
| .gif) | TryGetClickablePoint | Returns a clickable point in the UITestControl. If the control is not clickable, this method returns false. (Inherited from UITestControl.) | 
| .gif) | WaitForControlCondition(Predicate<UITestControl>) | Blocks the current thread until this control meets the specified condition, or until the default time-out expires. (Inherited from UITestControl.) | 
| .gif) | WaitForControlCondition(Predicate<UITestControl>, Int32) | Blocks the current thread until this control meets the specified condition, or until the specified time-out expires. (Inherited from UITestControl.) | 
| .gif) | WaitForControlEnabled() | Blocks the current thread until this control is enabled, or until the default time-out expires. (Inherited from UITestControl.) | 
| .gif) | WaitForControlEnabled(Int32) | Blocks the current thread until this control is enabled, or until the specified time-out expires. (Inherited from UITestControl.) | 
| .gif) | WaitForControlExist() | Blocks the current thread until this control occurs in the user interface, or until the default time-out expires. (Inherited from UITestControl.) | 
| .gif) | WaitForControlExist(Int32) | Blocks the current thread until this control occurs in the user interface, or until the specified time-out expires. (Inherited from UITestControl.) | 
| .gif) | WaitForControlNotExist() | Blocks the current thread until this control no longer is in the user interface, or until the default time-out expires. (Inherited from UITestControl.) | 
| .gif) | WaitForControlNotExist(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.) | 
| .gif) | WaitForControlPropertyEqual(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.) | 
| .gif) | WaitForControlPropertyEqual(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.) | 
| .gif) | WaitForControlPropertyNotEqual(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.) | 
| .gif) | WaitForControlPropertyNotEqual(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.) | 
| .gif) | WaitForControlReady() | 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.) | 
| .gif) | WaitForControlReady(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.) | 
Top
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.