Class AppletTag
- Namespace
- Ranorex
- Assembly
- Ranorex.Plugin.Web.dll
The HTML 'applet' tag.
public class AppletTag : WebElement, IAdapter
- Inheritance
-
AppletTag
- Implements
- Inherited Members
Constructors
AppletTag()
Creates a new AppletTag adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected AppletTag()
AppletTag(Element)
Creates a new AppletTag adapter instance.
public AppletTag(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
Align
The 'align' attribute of the element.
public virtual string Align { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Alt
The 'alt' attribute of the element.
public virtual string Alt { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Archive
The 'archive' attribute of the element.
public virtual string Archive { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Code
The 'code' attribute of the element.
public virtual string Code { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Codebase
The 'codebase' attribute of the element.
public virtual string Codebase { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Height
The 'height' attribute of the element.
public virtual string Height { 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.
Object
The 'object' attribute of the element.
public virtual string Object { 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[]
Title
The 'title' attribute of the element.
public virtual string Title { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Width
The 'width' attribute of the element.
public virtual string Width { 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 AppletTag FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- AppletTag
The AppletTag.
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 AppletTag FromPath(string path)
Parameters
pathstringThe search path.
Returns
- AppletTag
The AppletTag.
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 AppletTag(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator AppletTag(Element element)
Parameters
elementElementThe element to convert.
Returns
- AppletTag
The AppletTag.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator AppletTag(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator AppletTag(string path)
Parameters
pathstringThe search path.
Returns
- AppletTag
The AppletTag.
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.