Class HtmlControl
Inherited Members
Namespace: ArtOfTest.WebAii.Controls.HtmlControls
Assembly: ArtOfTest.WebAii.dll
Syntax
public class HtmlControl : Control
Constructors
HtmlControl()
Declaration
public HtmlControl()
HtmlControl(Element)
Properties
Attributes
Declaration
public virtual ReadOnlyCollection<iAttribute> Attributes { get; }
Property Value
System.Collections.ObjectModel.ReadOnlyCollection<iAttribute>
|
ChildNodes
Declaration
public ReadOnlyCollection<Element> ChildNodes { get; }
Property Value
System.Collections.ObjectModel.ReadOnlyCollection<Element>
|
ClientSideLocator
Declaration
public virtual string ClientSideLocator { get; }
Property Value
System.String
|
CssClass
Declaration
public virtual string CssClass { get; }
Property Value
System.String
|
Events
Declaration
public virtual NameValueCollection Events { get; }
Property Value
System.Collections.Specialized.NameValueCollection
|
Find
GetElementByIdClientSideLocator
Declaration
protected string GetElementByIdClientSideLocator { get; }
Property Value
System.String
|
GetElementByTagNameClientSideLocator
Declaration
protected string GetElementByTagNameClientSideLocator { get; }
Property Value
System.String
|
ID
Declaration
public virtual string ID { get; }
Property Value
System.String
|
IsActiveElement
Declaration
public bool IsActiveElement { get; }
Property Value
System.Boolean
|
IsEnabled
Declaration
public bool IsEnabled { get; set; }
Property Value
System.Boolean
|
Mappings
ScrollLeft
Declaration
public virtual int ScrollLeft { get; set; }
Property Value
System.Int32
|
ScrollTop
Declaration
public virtual int ScrollTop { get; set; }
Property Value
System.Int32
|
Styles
Declaration
public virtual NameValueCollection Styles { get; }
Property Value
System.Collections.Specialized.NameValueCollection
|
TagName
Declaration
public virtual string TagName { get; }
Property Value
System.String
|
Wait
Methods
AddEventListener(String, EventHandler<JavascriptEventArgs>)
Declaration
public virtual bool AddEventListener(string eventType, EventHandler<JavascriptEventArgs> listener)
Parameters
System.String
eventType
|
System.EventHandler<JavascriptEventArgs>
listener
|
Returns
System.Boolean
|
AsjQueryControl()
AssignElement(Element)
CallMethod(String)
Declaration
public void CallMethod(string methodCall)
Parameters
System.String
methodCall
|
CallMethod<T>(String)
Declaration
public virtual T CallMethod<T>(string methodCall)
Parameters
System.String
methodCall
|
Returns
T
|
Type Parameters
T
|
CallMethod<T>(String, T)
Declaration
public virtual T CallMethod<T>(string methodCall, T defaultValue)
Parameters
System.String
methodCall
|
T
defaultValue
|
Returns
T
|
Type Parameters
T
|
Capture()
Declaration
public virtual Bitmap Capture()
Returns
System.Drawing.Bitmap
|
Capture(String)
Declaration
public virtual void Capture(string imageName)
Parameters
System.String
imageName
|
Capture(String, String)
Declaration
public virtual void Capture(string savePath, string imageName)
Parameters
System.String
savePath
|
System.String
imageName
|
Click()
Declaration
public virtual void Click()
Click(Boolean)
Declaration
public virtual void Click(bool isClosing)
Parameters
System.Boolean
isClosing
|
Download(Boolean, DownloadOption, String, Int32)
Declaration
public virtual void Download(bool clickUsingDesktopMouse, DownloadOption downloadOption, string saveLocation, int downloadTimeout)
Parameters
System.Boolean
clickUsingDesktopMouse
|
DownloadOption
downloadOption
|
System.String
saveLocation
|
System.Int32
downloadTimeout
|
DragTo(OffsetReference, Point, HtmlControl)
Declaration
public virtual void DragTo(OffsetReference sourceOffsetReference, Point sourceOffset, HtmlControl destination)
Parameters
OffsetReference
sourceOffsetReference
|
System.Drawing.Point
sourceOffset
|
HtmlControl
destination
|
DragTo(OffsetReference, Point, HtmlControl, OffsetReference, Point)
Declaration
public virtual void DragTo(OffsetReference sourceOffsetReference, Point sourceOffset, HtmlControl destination, OffsetReference destinationOffsetReference, Point destinationOffset)
Parameters
OffsetReference
sourceOffsetReference
|
System.Drawing.Point
sourceOffset
|
HtmlControl
destination
|
OffsetReference
destinationOffsetReference
|
System.Drawing.Point
destinationOffset
|
DragTo(OffsetReference, Point, Int32, Int32)
Declaration
public virtual void DragTo(OffsetReference sourceOffsetReference, Point sourceOffset, int destinationOffsetX, int destinationOffsetY)
Parameters
OffsetReference
sourceOffsetReference
|
System.Drawing.Point
sourceOffset
|
System.Int32
destinationOffsetX
|
System.Int32
destinationOffsetY
|
DragTo(OffsetReference, Int32, Int32, Boolean, HtmlControl, OffsetReference, Int32, Int32, Boolean)
Declaration
public virtual void DragTo(OffsetReference sourceOffsetReference, int sourceOffsetX, int sourceOffsetY, bool sourcePixelDrag, HtmlControl destination, OffsetReference destinationOffsetReference, int destinationOffsetX, int destinationOffsetY, bool pixelDrop)
Parameters
OffsetReference
sourceOffsetReference
|
System.Int32
sourceOffsetX
|
System.Int32
sourceOffsetY
|
System.Boolean
sourcePixelDrag
|
HtmlControl
destination
|
OffsetReference
destinationOffsetReference
|
System.Int32
destinationOffsetX
|
System.Int32
destinationOffsetY
|
System.Boolean
pixelDrop
|
DragTo(OffsetReference, Int32, Int32, Rectangle, OffsetReference, Int32, Int32)
Declaration
public virtual void DragTo(OffsetReference sourceOffsetReference, int sourceOffsetX, int sourceOffsetY, Rectangle destinationRectangle, OffsetReference destinationOffsetReference, int destinationOffsetX, int destinationOffsetY)
Parameters
OffsetReference
sourceOffsetReference
|
System.Int32
sourceOffsetX
|
System.Int32
sourceOffsetY
|
System.Drawing.Rectangle
destinationRectangle
|
OffsetReference
destinationOffsetReference
|
System.Int32
destinationOffsetX
|
System.Int32
destinationOffsetY
|
DragTo(HtmlControl)
DragTo(HtmlControl, OffsetReference, Point)
Declaration
public virtual void DragTo(HtmlControl control, OffsetReference destinationOffsetReference, Point destinationOffset)
Parameters
HtmlControl
control
|
OffsetReference
destinationOffsetReference
|
System.Drawing.Point
destinationOffset
|
DragTo(Point)
Declaration
public virtual void DragTo(Point absolutePoint)
Parameters
System.Drawing.Point
absolutePoint
|
DragTo(Int32, Int32)
Declaration
public virtual void DragTo(int offsetX, int offsetY)
Parameters
System.Int32
offsetX
|
System.Int32
offsetY
|
DragToWindowLocation(OffsetReference, Int32, Int32, Boolean, OffsetReference, Int32, Int32, Boolean)
Declaration
public virtual void DragToWindowLocation(OffsetReference sourceOffsetReference, int sourceOffsetX, int sourceOffsetY, bool sourcePixelDrag, OffsetReference windowOffset, int windowOffsetX, int windowOffsetY, bool pixelDrop)
Parameters
OffsetReference
sourceOffsetReference
|
System.Int32
sourceOffsetX
|
System.Int32
sourceOffsetY
|
System.Boolean
sourcePixelDrag
|
OffsetReference
windowOffset
|
System.Int32
windowOffsetX
|
System.Int32
windowOffsetY
|
System.Boolean
pixelDrop
|
FindParentContainer<TContainerControl>()
Declaration
protected Element FindParentContainer<TContainerControl>()
where TContainerControl : HtmlContainerControl, new()
Returns
Element
|
Type Parameters
TContainerControl
|
Focus()
Declaration
public virtual void Focus()
GetAttributeAsString(String)
Declaration
protected string GetAttributeAsString(string attributeName)
Parameters
System.String
attributeName
|
Returns
System.String
|
GetComputedStyle(String)
Declaration
public virtual HtmlStyle GetComputedStyle(string style)
Parameters
System.String
style
|
Returns
HtmlStyle
|
GetComputedStyleValue(String)
Declaration
public virtual string GetComputedStyleValue(string style)
Parameters
System.String
style
|
Returns
System.String
|
GetRectangle()
Declaration
public virtual Rectangle GetRectangle()
Returns
System.Drawing.Rectangle
|
GetStyle(String)
Declaration
public virtual HtmlStyle GetStyle(string style)
Parameters
System.String
style
|
Returns
HtmlStyle
|
GetStyleValue(String)
Declaration
public virtual string GetStyleValue(string style)
Parameters
System.String
style
|
Returns
System.String
|
GetValue<T>(String)
Declaration
public virtual T GetValue<T>(string propertyName)
Parameters
System.String
propertyName
|
Returns
T
|
Type Parameters
T
|
GetValue<T>(String, T)
Declaration
public virtual T GetValue<T>(string propertyName, T defaultValue)
Parameters
System.String
propertyName
|
T
defaultValue
|
Returns
T
|
Type Parameters
T
|
GetValue<T>(String, Boolean)
Declaration
[Obsolete]
public virtual T GetValue<T>(string propertyName, bool isJsWrappedObject)
Parameters
System.String
propertyName
|
System.Boolean
isJsWrappedObject
|
Returns
T
|
Type Parameters
T
|
GetValue<T>(String, Boolean, T)
Declaration
[Obsolete]
public virtual T GetValue<T>(string propertyName, bool isJsWrappedObject, T defaultValue)
Parameters
System.String
propertyName
|
System.Boolean
isJsWrappedObject
|
T
defaultValue
|
Returns
T
|
Type Parameters
T
|
InitializeMappings(MappingsCollection)
Declaration
public virtual void InitializeMappings(MappingsCollection mappings)
Parameters
MappingsCollection
mappings
|
InvokeEvent(ScriptEventType)
Declaration
public virtual void InvokeEvent(ScriptEventType eventType)
Parameters
ScriptEventType
eventType
|
InvokeEvent(ScriptEventType, Boolean)
Declaration
public virtual void InvokeEvent(ScriptEventType eventType, bool closesBrowser)
Parameters
ScriptEventType
eventType
|
System.Boolean
closesBrowser
|
InvokeEvent(ScriptEvent)
InvokeEvent(ScriptEvent, Boolean)
Declaration
public virtual void InvokeEvent(ScriptEvent eventObj, bool closesBrowser)
Parameters
ScriptEvent
eventObj
|
System.Boolean
closesBrowser
|
IsVisible()
Declaration
public virtual bool IsVisible()
Returns
System.Boolean
|
MouseClick()
Declaration
public virtual void MouseClick()
MouseClick(MouseClickType)
Declaration
public virtual void MouseClick(MouseClickType clickType)
Parameters
MouseClickType
clickType
|
MouseClick(MouseClickType, Point, OffsetReference)
Declaration
public virtual void MouseClick(MouseClickType clickType, Point offset, OffsetReference reference)
Parameters
MouseClickType
clickType
|
System.Drawing.Point
offset
|
OffsetReference
reference
|
MouseClick(MouseClickType, Int32, Int32)
Declaration
public virtual void MouseClick(MouseClickType clickType, int x, int y)
Parameters
MouseClickType
clickType
|
System.Int32
x
|
System.Int32
y
|
MouseClick(MouseClickType, Int32, Int32, OffsetReference)
Declaration
public virtual void MouseClick(MouseClickType clickType, int Xoffset, int Yoffset, OffsetReference reference)
Parameters
MouseClickType
clickType
|
System.Int32
Xoffset
|
System.Int32
Yoffset
|
OffsetReference
reference
|
MouseHover()
Declaration
public virtual void MouseHover()
MouseHover(Point)
Declaration
public virtual void MouseHover(Point pointToHoverOver)
Parameters
System.Drawing.Point
pointToHoverOver
|
MouseHover(Int32, Int32)
Declaration
public virtual void MouseHover(int x, int y)
Parameters
System.Int32
x
|
System.Int32
y
|
MouseHover(Int32, Int32, OffsetReference)
Declaration
public virtual void MouseHover(int x, int y, OffsetReference reference)
Parameters
System.Int32
x
|
System.Int32
y
|
OffsetReference
reference
|
Parent<TContainerControl>()
Declaration
public virtual TContainerControl Parent<TContainerControl>()
where TContainerControl : HtmlContainerControl, new()
Returns
TContainerControl
|
Type Parameters
TContainerControl
|
ParseResponseValue<T>(String, T)
Declaration
protected T ParseResponseValue<T>(string response, T defaultValue)
Parameters
System.String
response
|
T
defaultValue
|
Returns
T
|
Type Parameters
T
|
RemoveEventListener(String, EventHandler<JavascriptEventArgs>)
Declaration
public virtual void RemoveEventListener(string eventType, EventHandler<JavascriptEventArgs> listener)
Parameters
System.String
eventType
|
System.EventHandler<JavascriptEventArgs>
listener
|
ScrollToVisible()
Declaration
public virtual void ScrollToVisible()
ScrollToVisible(ScrollToVisibleType)
Declaration
public virtual void ScrollToVisible(ScrollToVisibleType scrollToVisibleType)
Parameters
ScrollToVisibleType
scrollToVisibleType
|
ScrollToVisible(ScrollToVisibleType, Rectangle)
Declaration
public virtual void ScrollToVisible(ScrollToVisibleType scrollToVisibleType, Rectangle rectangle)
Parameters
ScrollToVisibleType
scrollToVisibleType
|
System.Drawing.Rectangle
rectangle
|
SetValue<T>(String, T)
Declaration
public virtual void SetValue<T>(string propertyName, T value)
Parameters
System.String
propertyName
|
T
value
|
Type Parameters
T
|
SetValue<T>(String, T, Boolean)
Declaration
public virtual void SetValue<T>(string propertyName, T value, bool isJsWrappedObject)
Parameters
System.String
propertyName
|
T
value
|
System.Boolean
isJsWrappedObject
|
Type Parameters
T
|
ToString()
Declaration
public override string ToString()
Returns
System.String
|
Overrides
ValidateControl()
Declaration
protected bool ValidateControl()
Returns
System.Boolean
|
ValidateTag(String)
Declaration
protected bool ValidateTag(string tagName)
Parameters
System.String
tagName
|
Returns
System.Boolean
|