Class AreaTag
- Namespace
- Ranorex
- Assembly
- Ranorex.Plugin.Web.dll
The HTML 'area' tag.
public class AreaTag : WebElement, IAdapter
- Inheritance
-
AreaTag
- Implements
- Inherited Members
Constructors
AreaTag()
Creates a new AreaTag adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected AreaTag()
AreaTag(Element)
Creates a new AreaTag adapter instance.
public AreaTag(Element element)
Parameters
elementElementThe element to create the adapter for.
Exceptions
- NullReferenceException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
Properties
Alt
The 'alt' attribute of the element.
public virtual string Alt { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Coords
The 'coords' attribute of the element.
public virtual string Coords { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
HrefLang
The 'hreflang' attribute of the element.
public virtual string HrefLang { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Media
The 'media' attribute of the element.
public virtual string Media { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Ping
The 'ping' attribute of the element.
public virtual string Ping { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Rel
The 'rel' attribute of the element.
public virtual string Rel { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
RequiredCapabilities
Capabilities required by the adapter implementation.
protected override string[] RequiredCapabilities { get; }
Property Value
- string[]
Shape
The 'shape' attribute of the element.
public virtual string Shape { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Tabindex
The 'tabindex' attribute of the element.
public virtual string Tabindex { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Target
The 'target' attribute of the element.
public virtual string Target { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Title
The 'title' attribute of the element.
public virtual string Title { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Type
The 'type' attribute of the element.
public virtual string Type { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Methods
FromElement(Element)
Converts an Element to an instance of this class.
public static AreaTag FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- AreaTag
The AreaTag.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
FromPath(string)
Converts a string to an instance of this class by searching the root.
public static AreaTag FromPath(string path)
Parameters
pathstringThe search path.
Returns
- AreaTag
The AreaTag.
Remarks
The DefaultSearchTimeout is used to search for the specified path.
Exceptions
- ArgumentNullException
If
pathisnull.- RxPathException
If the specified
pathis not valid.- ElementNotFoundException
If no element is found.
- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
Operators
implicit operator AreaTag(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator AreaTag(Element element)
Parameters
elementElementThe element to convert.
Returns
- AreaTag
The AreaTag.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator AreaTag(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator AreaTag(string path)
Parameters
pathstringThe search path.
Returns
- AreaTag
The AreaTag.
Remarks
The DefaultSearchTimeout is used to search for the specified path.
Exceptions
- ArgumentNullException
If
pathisnull.- RxPathException
If the specified
pathis not valid.- ElementNotFoundException
If no element is found.
- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.