ArtOfTest, Inc. - WebAii 1.1 Automation Infrastructure
HtmlAnchor Class
NamespacesArtOfTest.WebAii.Controls.HtmlControlsHtmlAnchor
Test class for an HtmlAnchor element <a href="...">...</a>
Declaration Syntax
C#Visual BasicVisual Basic Usage
public class HtmlAnchor : HtmlContainerControl
Public Class HtmlAnchor _
	Inherits HtmlContainerControl
Dim instance As HtmlAnchor
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
HtmlAnchor(Element)
Create a new control.

HtmlAnchor()()()
Create a new control.

AssignElement(Element)
Assign this control a base element. Performs any initialization for this control.
(Overrides HtmlContainerControl.AssignElement(Element).)
AssignFailed(Exception)
Mark the assignment to failed. Throw if the framework is set for throwing.
(Inherited from Control.)
Attributes
All attributes set on this control
(Inherited from HtmlControl.)
BaseElement
Gets the DOM element representing this test control
(Inherited from Control.)
CallMethod<(Of <(T>)>)(String)
Call a client side method on this control
(Inherited from HtmlControl.)
CallMethod<(Of <(T>)>)(String, T) (Inherited from HtmlControl.)
Capture()()()
Captures and returns the image of the current Html Control.
(Inherited from HtmlControl.)
Capture(String, String)
Captures and saves Html Control Image to the specified save path as the specified image name in bmp format.
(Inherited from HtmlControl.)
Capture(String)
Captures and saves Html Control Image to the WebAii log location as a bmp file.
(Inherited from HtmlControl.)
Click()()()
Invoke a click within the loaded page.
(Inherited from HtmlControl.)
Click(Boolean)
Invoke a click that causes that browser window to close (i.e. this is common for html pop-ups)
(Inherited from HtmlControl.)
ClientSideLocator
Gets the client-side locator for this control. This property can be used to define a custom client side object that this control maps to. GetValue/SetValue properties use that object to make their calls instead of the default one.
(Inherited from HtmlControl.)
CssClass
Control's CSS class if set.
(Inherited from HtmlControl.)
Download(Boolean, DownloadOption, String, Int32)
Clicks a control using the MouseClick or Click and handles the download dialogs sequence that is produced.
(Inherited from HtmlControl.)
DragTo(OffsetReference, Point, Int32, Int32)
Drag this control from a source offset to an X/Y offset from the source.
(Inherited from HtmlControl.)
DragTo(OffsetReference, Int32, Int32, Rectangle, OffsetReference, Int32, Int32)
Drag this control from a source offset to an X/Y offset from the source.
(Inherited from HtmlControl.)
DragTo(Point)
Drag this control to an absolute point.
(Inherited from HtmlControl.)
DragTo(Int32, Int32)
Drag this control to a relative X/Y offset.
(Inherited from HtmlControl.)
DragTo(HtmlControl)
Drag this control to the center on the destination control.
(Inherited from HtmlControl.)
DragTo(HtmlControl, OffsetReference, Point)
Drag to a destination control with an offset of where within the destination control to drag to.
(Inherited from HtmlControl.)
DragTo(OffsetReference, Point, HtmlControl)
Drag this control by specifying a reference point on the control rectangle to start the drag from with an offset and drop on the destination control center.
(Inherited from HtmlControl.)
DragTo(OffsetReference, Point, HtmlControl, OffsetReference, Point)
Drag this control by specifying a reference point on the control rectangle to start the drag from and a reference point on the destination control to specify the drop location.
(Inherited from HtmlControl.)
DragTo(OffsetReference, Int32, Int32, Boolean, HtmlControl, OffsetReference, Int32, Int32, Boolean)
Drag this control by specifying a reference point on the control rectangle to start the drag from and a reference point on the destination control to specify the drop location.
(Inherited from HtmlControl.)
DragToWindowLocation(OffsetReference, Int32, Int32, Boolean, OffsetReference, Int32, Int32, Boolean)
Drag this control, using the browser window as the drop target
(Inherited from HtmlControl.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Events
Events collection set on this control
(Inherited from HtmlControl.)
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
Find property
(Inherited from HtmlContainerControl.)
FindParentContainer<(Of <(TContainerControl>)>)()()()
Traverses the DOM tree upwards until it finds the container element desired.
(Inherited from HtmlControl.)
GetAttributeAsString(String)
Get an attribute of this element as a string
(Inherited from HtmlControl.)
GetComputedStyle(String)
Returns an HtmlStyle object that can be used to easily probe the style value. (i.e. convert unit styles to Int32 or color value to System.Drawing.Color)
(Inherited from HtmlControl.)
GetComputedStyleValue(String)
Returns computed style value. Computed style represents the final computed value of all CSS properties for the element.
(Inherited from HtmlControl.)
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetRectangle()()()
The absolute screen position of the control.
(Inherited from HtmlControl.)
GetStyle(String)
Returns a HtmlStyle object that can be used to easily probe the style value. (i.e. convert unit styles to Int32 or color value to System.Drawing.Color)
(Inherited from HtmlControl.)
GetStyleValue(String)
Returns any style as if you are accessing the element.style object from javascript.
(Inherited from HtmlControl.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
GetValue<(Of <(T>)>)(String)
(Inherited from HtmlControl.)
GetValue<(Of <(T>)>)(String, T)
Get a property value (i.e. control.border or control.style.backgroundColor). string s = myControl.GetValue<string>("style.backgroundColor")
(Inherited from HtmlControl.)
GetValue<(Of <(T>)>)(String, Boolean)
Get a property value (i.e. control.border or control.style.backgroundColor). string s = myControl.GetValue<string>("style.backgroundColor")
(Inherited from HtmlControl.)
HRef
Gets the URL of the linked resource.

ID
Control's ID if set.
(Inherited from HtmlControl.)
InnerText
Gets the innerText of this container control.
(Inherited from HtmlContainerControl.)
InvokeEvent(ScriptEventType)
Invokes an event on this control
(Inherited from HtmlControl.)
IsRefresh
Gets whether the control is executing a Refresh call.
(Inherited from Control.)
IsVisible()()()
Returns whether the html element is visible or not. Returns true only when computedStyle.display != 'none' && computedStyle.visibility != 'hidden'
(Inherited from HtmlControl.)
Locator
Gets the FindParam that describes this control. The base Control returns null.
(Inherited from Control.)
MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
MouseClick()()()
Uses the Desktop.Mouse object to move the mouse to this control and click it.
(Inherited from HtmlControl.)
MouseClick(MouseClickType)
Uses the Desktop.Mouse object to move the mouse to this control and click it.
(Inherited from HtmlControl.)
MouseClick(MouseClickType, Int32, Int32)
Uses the Desktop.Mouse object to move the mouse to this control and click it.
(Inherited from HtmlControl.)
MouseClick(MouseClickType, Point, OffsetReference)
Uses the Desktop.Mouse object to move the mouse to this control and click it.
(Inherited from HtmlControl.)
MouseClick(MouseClickType, Int32, Int32, OffsetReference)
Uses the Desktop.Mouse object to move the mouse to this control and click it.
(Inherited from HtmlControl.)
MouseHover(Point)
Uses the Desktop.Mouse object to Hover over the control
(Inherited from HtmlControl.)
MouseHover()()()
Uses the Desktop.Mouse object to Hover over the control
(Inherited from HtmlControl.)
MouseHover(Int32, Int32)
Uses the Desktop.Mouse object to Hover over the control
(Inherited from HtmlControl.)
MouseHover(Int32, Int32, OffsetReference)
Uses the Desktop.Mouse object to Hover over the control
(Inherited from HtmlControl.)
Name
Gets the name of a link.

OwnerBrowser
Gets the owner browser that owns this control.
(Inherited from Control.)
Parent<(Of <(TContainerControl>)>)()()()
Return the parent HtmlContainerControl of desired type that this control is contained in. If control is not found, will return null.
(Inherited from HtmlControl.)
Refresh()()()
Refresh this control within the current DOM and update this control property values.
(Inherited from Control.)
ScrollLeft
Gets/Sets the scrollLeft value of the html control.
(Inherited from HtmlControl.)
ScrollTop
Gets/Sets the scrollTop value of the html control
(Inherited from HtmlControl.)
ScrollToVisible(ScrollToVisibleType)
Scroll control to Visible Position on the page
(Inherited from HtmlControl.)
SetValue<(Of <(T>)>)(String, T)
Set a property value. (i.e. control.border = 2 or control.style.backgroundColor = "red") myControl.SetValue<string>("style.backgroundColor","red")
(Inherited from HtmlControl.)
SetValue<(Of <(T>)>)(String, T, Boolean)
Set a property value. (i.e. control.border = 2 or control.style.backgroundColor = "red") myControl.SetValue<string>("style.backgroundColor","red")
(Inherited from HtmlControl.)
Styles
Styles collection set on this control and persisted in the Html stream. This collection does not contain computed styles.
(Inherited from HtmlControl.)
TagName
The tag name of this element
(Inherited from HtmlControl.)
Target
Gets where to open a link.

TextContent
Gets the TextContent of this container control.
(Inherited from HtmlContainerControl.)
ThrowOnInvalidAssignment
Gets whether the control should throw on invalid assignments
(Inherited from Control.)
Title
The text displayed when the mouse pointer is placed over the System.Web.UI.HtmlControls.HtmlAnchor.

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
ValidateControl()()()
Validate a control using a its Locator.
(Inherited from HtmlControl.)
ValidateTag(String)
Validate a tag name
(Inherited from HtmlControl.)
Wait
Gets the HTML Wait object.
(Inherited from HtmlControl.)
Inheritance Hierarchy

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