Table of Contents

Class ThTag

Namespace
Ranorex
Assembly
Ranorex.Plugin.Web.dll

The HTML 'th' tag.

public class ThTag : WebElement, IAdapter
Inheritance
ThTag
Implements
Inherited Members

Constructors

ThTag()

Creates a new ThTag adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!

protected ThTag()

ThTag(Element)

Creates a new ThTag adapter instance.

public ThTag(Element element)

Parameters

element Element

The element to create the adapter for.

Exceptions

NullReferenceException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

Properties

Abbr

The 'abbr' attribute of the element.

public virtual string Abbr { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Align

The 'align' attribute of the element.

public virtual string Align { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Axis

The 'axis' attribute of the element.

public virtual string Axis { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Colspan

The 'colspan' attribute of the element.

public virtual string Colspan { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Headers

The 'headers' attribute of the element.

public virtual string Headers { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Height

The 'height' attribute of the element.

public virtual string Height { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

RequiredCapabilities

Capabilities required by the adapter implementation.

protected override string[] RequiredCapabilities { get; }

Property Value

string[]

Rowspan

The 'rowspan' attribute of the element.

public virtual string Rowspan { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Scope

The 'scope' attribute of the element.

public virtual string Scope { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Title

The 'title' attribute of the element.

public virtual string Title { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Valign

The 'valign' attribute of the element.

public virtual string Valign { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Width

The 'width' attribute of the element.

public virtual string Width { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Methods

FromElement(Element)

Converts an Element to an instance of this class.

public static ThTag FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

ThTag

The ThTag.

Exceptions

ArgumentNullException

If element is null.

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 ThTag FromPath(string path)

Parameters

path string

The search path.

Returns

ThTag

The ThTag.

Remarks

The DefaultSearchTimeout is used to search for the specified path.

Exceptions

ArgumentNullException

If path is null.

RxPathException

If the specified path is not valid.

ElementNotFoundException

If no element is found.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

Operators

implicit operator ThTag(Element)

Implicitly converts an Element to an instance of this class.

public static implicit operator ThTag(Element element)

Parameters

element Element

The element to convert.

Returns

ThTag

The ThTag.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

implicit operator ThTag(string)

Implicitly converts a string to an instance of this class by searching the root.

public static implicit operator ThTag(string path)

Parameters

path string

The search path.

Returns

ThTag

The ThTag.

Remarks

The DefaultSearchTimeout is used to search for the specified path.

Exceptions

ArgumentNullException

If path is null.

RxPathException

If the specified path is not valid.

ElementNotFoundException

If no element is found.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.