Class EmbedTag
- Namespace
- Ranorex
- Assembly
- Ranorex.Plugin.Web.dll
The HTML 'embed' tag.
public class EmbedTag : WebElement, IAdapter
- Inheritance
-
EmbedTag
- Implements
- Inherited Members
Constructors
EmbedTag()
Creates a new EmbedTag adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected EmbedTag()
EmbedTag(Element)
Creates a new EmbedTag adapter instance.
public EmbedTag(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.
Autostart
The 'autostart' attribute of the element.
public virtual string Autostart { 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.
Href
The 'href' attribute of the element.
public virtual string Href { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Loop
The 'loop' attribute of the element.
public virtual string Loop { 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.
NativeObject
The native ActiveX object wrapped by this object tag, if supported. Only works with Internet Explorer.
public virtual object NativeObject { get; }
Property Value
Playcount
The 'playcount' attribute of the element.
public virtual string Playcount { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Pluginspage
The 'pluginspage' attribute of the element.
public virtual string Pluginspage { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Pluginurl
The 'pluginurl' attribute of the element.
public virtual string Pluginurl { 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[]
Src
The 'src' attribute of the element.
public virtual string Src { 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.
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 EmbedTag FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- EmbedTag
The EmbedTag.
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 EmbedTag FromPath(string path)
Parameters
pathstringThe search path.
Returns
- EmbedTag
The EmbedTag.
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 EmbedTag(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator EmbedTag(Element element)
Parameters
elementElementThe element to convert.
Returns
- EmbedTag
The EmbedTag.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator EmbedTag(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator EmbedTag(string path)
Parameters
pathstringThe search path.
Returns
- EmbedTag
The EmbedTag.
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.