Class ObjectTag
- Namespace
- Ranorex
- Assembly
- Ranorex.Plugin.Web.dll
The HTML 'object' tag.
public class ObjectTag : WebElement, IAdapter
- Inheritance
-
ObjectTag
- Implements
- Inherited Members
Constructors
ObjectTag()
Creates a new ObjectTag adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected ObjectTag()
ObjectTag(Element)
Creates a new ObjectTag adapter instance.
public ObjectTag(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.
Archive
The 'archive' attribute of the element.
public virtual string Archive { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Classid
The 'classid' attribute of the element.
public virtual string Classid { 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.
Codetype
The 'codetype' attribute of the element.
public virtual string Codetype { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Data
The 'data' attribute of the element.
public virtual string Data { 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.
Hspace
The 'hspace' attribute of the element.
public virtual string Hspace { 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
RequiredCapabilities
Capabilities required by the adapter implementation.
protected override string[] RequiredCapabilities { get; }
Property Value
- string[]
Standby
The 'standby' attribute of the element.
public virtual string Standby { 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.
Vspace
The 'vspace' attribute of the element.
public virtual string Vspace { 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 ObjectTag FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- ObjectTag
The ObjectTag.
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 ObjectTag FromPath(string path)
Parameters
pathstringThe search path.
Returns
- ObjectTag
The ObjectTag.
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 ObjectTag(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator ObjectTag(Element element)
Parameters
elementElementThe element to convert.
Returns
- ObjectTag
The ObjectTag.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator ObjectTag(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator ObjectTag(string path)
Parameters
pathstringThe search path.
Returns
- ObjectTag
The ObjectTag.
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.