ArtOfTest, Inc. - WebAii 1.1 Automation Infrastructure reference library
Browser class
Class represents a browser instance managed by the Manager. This object exposes all the browser specific information and methods to automate the underlying browser that this instance represents.
Syntax
C#
public class Browser
Members
All MembersConstructorsMethodsPropertiesFieldsEvents



IconMemberDescription
Actions
Gets the Actions object that can be used to perform different actions against the loaded document in the browser.
AfterCommandExecuted
Event occurs after the command is executed and the response is available.
Annotator
Gets the Annotator object associated with this browser.
AutoDomRefresh
Gets/Sets whether to automatically refresh the DOM tree after each browser command.
AutoWaitUntilReady
Gets/Sets whether to automatically wait until browser is ready after each browser command.
BeforeCommandExecuted
Event occurs before a command is pushed to the browser.
BrowserType
Gets the browser type (i.e. IE/FireFox ...etc)
ClientId
The unique ID for this browser that the manager identifies it with.
Close()
Closes a browser window.
Close(Int32)
Closes a browser window with a custom wait to close timeout.
CommandTimeOut
Gets/Sets the max wait time in milliseconds that the browser will wait for a command to process before it times out.
ContainsPoint(Point)
True/False whether a specific point falls within this browser/frame rendering region
ContainsRectangle(Rectangle)
True/False whether a specific rectangle falls within this browser/frame rendering region
ContainsText(String)
True/False whether the 'text' is contained within the page currently loaded. Not case sensitive.
ContentWindow
Gets the container window of the browser that contains the actual content of the page. (Excludes the browser toolbars, buttons ...etc.)
Cookies
Gets the cookies manager associated with this browser that allows you to retrieve, delete and add cookies.
DomHashCode
Gets the current DOM hash code
DomRefreshed
Event occurs after the DomTree is rebuilt (either after a command is executed or when RefreshDom is called)
DomTree
Gets the DOM Tree representation of the currently loaded document.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
ExecuteCommand(BrowserCommand)
Executes a command against this browser instance.
ExecuteCommand(BrowserCommand, Boolean, Boolean)
Executes a command against this browser instance.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Find
Gets the Find objects used to provide a rich set of methods to help identify elements in the Dom tree associated with this browser object.
FrameInfo
Gets the frame information if IsFrame = true else will return null. FrameInfo contains frame index and frame name.
Frames
List of child frames contained in this instance
GetHashCode()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetSelectedText()
Gets the text currently selected by the user in the browser window
GetType()
Gets the Type of the current instance.
(Inherited from Object.)
GoBack()
Simulates a go back browser action.
GoForward()
Simulates a go forward browser action.
IsConnected
Gets whether the browser is connected to manager of not.
IsFrame
Gets whether this instance represents a frame or not.
IsIEDialog
Gets whether this instance is an IE dialog (Modal/Modeless)
IsReady()
Gets whether the browser is ready or not.
IsUILess
Whether this browser is UI less browser. (i.e. a raw http request/response browser)
Manager
The manager of this browser object.
MemberwiseClone()
Creates a shallow copy of the current Object.
(Inherited from Object.)
NativeInstance
The native instance of this browser object (if available), otherwise null
NavigateTo(String)
Navigate the browser to a specific url and then enable the script logging.
NavigateTo(Uri)
Navigate the browser to a specific url.
PageTitle
Gets the page title if one exists. (text content of the 'title' tags)
PrepareFrameForClosing()
Used to disable the AutoRefreshDom and WaitUntilReady of a frame preparing it to be closed on next action and no longer polled by the framework.
QueryString
Gets a parsed name/value collection of the query string.
Refresh()
Simulates a browser Refresh.
RefreshDomTree()
Force a referesh of the DOM tree from the current document.
Regions
Gets a dictionary of all identified test regions in the currently loaded document.
ScrollBy(Int32, Int32)
Scroll this window by offset x horizontally and y vertically.
Stop()
Simulate a stop navigation browser action.
ToString()
Returns a String that represents the current Object.
(Inherited from Object.)
UpdateDomTree(String)
Parse and update the DomTree
Url
Gets the current page URL. This property is refreshed when calling RefreshDOMTree().
Version
The browser version for this browser type.
ViewSourceString
Gets the source of the page currently loaded in the browser. This is the string that the framework used to build the DOM.
WaitForUrl(String, Boolean, Int32)
Wait for a specific url to be set. This can be used to wait for browser redirects on certain sites.
WaitUntilReady()
Waits for the browser until its ready
Window
Gets the Win32 window object representing the actual browser window.
Inheritance Hierarchy

Assembly: ArtOfTest.WebAii (Module: ArtOfTest.WebAii)