Table of Contents

Class ParamTag

Namespace
Ranorex
Assembly
Ranorex.Plugin.Web.dll

The HTML 'param' tag.

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

Constructors

ParamTag()

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

protected ParamTag()

ParamTag(Element)

Creates a new ParamTag adapter instance.

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

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[]

Type

The 'type' attribute of the element.

public virtual string Type { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Value

The 'value' attribute of the element.

public virtual string Value { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Valuetype

The 'valuetype' attribute of the element.

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

Parameters

element Element

The element to convert.

Returns

ParamTag

The ParamTag.

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

Parameters

path string

The search path.

Returns

ParamTag

The ParamTag.

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

Implicitly converts an Element to an instance of this class.

public static implicit operator ParamTag(Element element)

Parameters

element Element

The element to convert.

Returns

ParamTag

The ParamTag.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

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

implicit operator ParamTag(string)

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

public static implicit operator ParamTag(string path)

Parameters

path string

The search path.

Returns

ParamTag

The ParamTag.

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.