Class ATag
- Namespace
- Ranorex
- Assembly
- Ranorex.Plugin.Web.dll
The HTML 'a' tag.
public class ATag : WebElement, IAdapter
- Inheritance
-
ATag
- Implements
- Inherited Members
Constructors
ATag()
Creates a new ATag adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected ATag()
ATag(Element)
Creates a new ATag adapter instance.
public ATag(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
Href
The 'href' attribute of the element.
public virtual string Href { 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.
Name
The 'name' attribute of the element.
public virtual string Name { 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[]
Rev
The 'rev' attribute of the element.
public virtual string Rev { 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 ATag FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- ATag
The ATag.
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 ATag FromPath(string path)
Parameters
pathstringThe search path.
Returns
- ATag
The ATag.
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 ATag(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator ATag(Element element)
Parameters
elementElementThe element to convert.
Returns
- ATag
The ATag.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator ATag(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator ATag(string path)
Parameters
pathstringThe search path.
Returns
- ATag
The ATag.
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.