ClassAspNetHostBrowser
A proxy that represents a browser object for the AspNetHost inproc web server.
Definition
Namespace:ArtOfTest.WebAii.BrowserSpecialized.AspNetHost
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class AspNetHostBrowser : Browser, IAutomationHost, ISupportSearchHost, IAnnotationHost
Inheritance: objectBrowserAspNetHostBrowser
Implements:
Inherited Members
Properties
AspNetAppInstance
The AspNetApplication instance that all requests are running against.
Declaration
public AspNetApplication AspNetAppInstance { get; }
Property Value
ContentWindow
Unsupported - Browser is window-less. This will throw an UnsupportedBrowserOperation exception.
Declaration
public override Window ContentWindow { get; }
Property Value
Overrides
IsConnected
Whether the AspNetApplication is running and the host is registered.
Declaration
public override bool IsConnected { get; }
Property Value
Overrides
Status
The response status code as of last response.
Methods
Close(int)
Close this browser.
Declaration
public override void Close(int waitToCloseTimeout)
Parameters
waitToCloseTimeout
No Used.
Overrides
ContainsRectangle(Rectangle)
Unsupported - Browser is window-less.
Declaration
public override bool ContainsRectangle(Rectangle rectangle)
Parameters
rectangle
Returns
None
Exceptions
UnsupportedBrowserOperationException
Always thrown.
Overrides
ExecuteCommand(BrowserCommand, bool, bool)
Unsupported - All commands are executed in-proc.
Declaration
public override BrowserCommand ExecuteCommand(BrowserCommand request, bool performDomRefresh, bool waitUntilReady)
Parameters
request
BrowserCommand
The request to execute.
performDomRefresh
Whether to perform a Dom refresh.
waitUntilReady
Whether to wait until the browser is ready.
Returns
BrowserCommand
N/A - UnsupportedBrowserOperationException
Overrides
GetForm()
Get the AspNetForm object.
Declaration
public AspNetForm GetForm()
Returns
The AspNet Form of this browser as of last request.
GoBack()
N/A - Call returns immediately.
Declaration
public override void GoBack()
Overrides
GoForward()
N/A - Call returns immediately.
Declaration
public override void GoForward()
Overrides
IsReady()
Always returns true for this browser.
NavigateTo(Uri, bool)
Navigate to a certain relative Url.
PerformCustomPostAction(AspNetForm)
Performs a post action to the server as defined by the form passed in.
Declaration
public void PerformCustomPostAction(AspNetForm form)
Parameters
form
The form object to use to make a postback.
Refresh()
N/A - Call returns immediately.
Declaration
public override void Refresh()
Overrides
RefreshDomTree()
Refresh the DomTree.
ResizeContent(Rectangle)
Unsupported - Browser is window-less.
Declaration
public override void ResizeContent(Rectangle rectangle)
Parameters
rectangle
Overrides
ScrollBy(int, int)
Unsupported - Browser is window-less.
Stop()
N/A - Call returns immediately.
Declaration
public override void Stop()
Overrides
WaitUntilReady()
N/A - Call returns immediately.
Declaration
public override void WaitUntilReady()
Overrides