Table of Contents

Class TextAreaTag

Namespace
Ranorex
Assembly
Ranorex.Plugin.Web.dll

The HTML 'textarea' tag.

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

Constructors

TextAreaTag()

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

protected TextAreaTag()

TextAreaTag(Element)

Creates a new TextAreaTag adapter instance.

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

AutoFocus

The 'autofocus' attribute of the element.

public virtual string AutoFocus { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Cols

The 'cols' attribute of the element.

public virtual string Cols { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

MaxLength

The 'maxlength' attribute of the element.

public virtual string MaxLength { 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.

Placeholder

The 'placeholder' attribute of the element.

public virtual string Placeholder { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Required

The 'required' attribute of the element.

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

Rows

The 'rows' attribute of the element.

public virtual string Rows { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Tabindex

The 'tabindex' attribute of the element.

public virtual string Tabindex { 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.

Wrap

The 'wrap' attribute of the element.

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

Parameters

element Element

The element to convert.

Returns

TextAreaTag

The TextAreaTag.

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

Parameters

path string

The search path.

Returns

TextAreaTag

The TextAreaTag.

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

Implicitly converts an Element to an instance of this class.

public static implicit operator TextAreaTag(Element element)

Parameters

element Element

The element to convert.

Returns

TextAreaTag

The TextAreaTag.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

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

implicit operator TextAreaTag(string)

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

public static implicit operator TextAreaTag(string path)

Parameters

path string

The search path.

Returns

TextAreaTag

The TextAreaTag.

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.