Table of Contents

Class InputTag

Namespace
Ranorex
Assembly
Ranorex.Plugin.Web.dll

The HTML 'input' tag.

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

Constructors

InputTag()

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

protected InputTag()

InputTag(Element)

Creates a new InputTag adapter instance.

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

Accept

The 'accept' attribute of the element.

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

Alt

The 'alt' attribute of the element.

public virtual string Alt { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

AutoComplete

The 'autocomplete' attribute of the element.

public virtual string AutoComplete { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

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.

Checked

The 'checked' attribute of the element.

public virtual string Checked { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Disabled

The 'disabled' attribute of the element.

public virtual string Disabled { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

FormAction

The 'formaction' attribute of the element.

public virtual string FormAction { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

FormEncType

The 'formenctype' attribute of the element.

public virtual string FormEncType { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

FormMethod

The 'formmethod' attribute of the element.

public virtual string FormMethod { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

FormNoValidate

The 'formnovalidate' attribute of the element.

public virtual string FormNoValidate { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

FormTarget

The 'formtarget' attribute of the element.

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

List

The 'list' attribute of the element.

public virtual string List { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Max

The 'max' attribute of the element.

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

Min

The 'min' attribute of the element.

public virtual string Min { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Multiple

The 'multiple' attribute of the element.

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

Pattern

The 'pattern' attribute of the element.

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

ReadOnly

The 'readonly' attribute of the element.

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

Size

The 'size' attribute of the element.

public virtual string Size { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Src

The 'src' attribute of the element.

public virtual string Src { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Step

The 'step' attribute of the element.

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

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.

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 InputTag FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

InputTag

The InputTag.

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

Parameters

path string

The search path.

Returns

InputTag

The InputTag.

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

Implicitly converts an Element to an instance of this class.

public static implicit operator InputTag(Element element)

Parameters

element Element

The element to convert.

Returns

InputTag

The InputTag.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

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

implicit operator InputTag(string)

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

public static implicit operator InputTag(string path)

Parameters

path string

The search path.

Returns

InputTag

The InputTag.

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.