Table of Contents

Class MetaTag

Namespace
Ranorex
Assembly
Ranorex.Plugin.Web.dll

The HTML 'meta' tag.

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

Constructors

MetaTag()

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

protected MetaTag()

MetaTag(Element)

Creates a new MetaTag adapter instance.

public MetaTag(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

CharSet

The 'charset' attribute of the element.

public virtual string CharSet { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Content

The 'content' attribute of the element.

public virtual string Content { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Httpequiv

The 'http-equiv' attribute of the element.

[OriginalDisplayName("Http-equiv")]
public virtual string Httpequiv { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Name

The 'name' attribute of the element.

public virtual string Name { 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[]

Scheme

The 'scheme' attribute of the element.

public virtual string Scheme { 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 MetaTag FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

MetaTag

The MetaTag.

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

Parameters

path string

The search path.

Returns

MetaTag

The MetaTag.

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 MetaTag(Element)

Implicitly converts an Element to an instance of this class.

public static implicit operator MetaTag(Element element)

Parameters

element Element

The element to convert.

Returns

MetaTag

The MetaTag.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

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

implicit operator MetaTag(string)

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

public static implicit operator MetaTag(string path)

Parameters

path string

The search path.

Returns

MetaTag

The MetaTag.

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.