Table of Contents

Class FormTag

Namespace
Ranorex
Assembly
Ranorex.Plugin.Web.dll

The HTML 'form' tag.

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

Constructors

FormTag()

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

protected FormTag()

FormTag(Element)

Creates a new FormTag adapter instance.

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

Action

The 'action' attribute of the element.

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

Enctype

The 'enctype' attribute of the element.

public virtual string Enctype { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Method

The 'method' attribute of the element.

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

NoValidate

The 'novalidate' attribute of the element.

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

Target

The 'target' attribute of the element.

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

Methods

FromElement(Element)

Converts an Element to an instance of this class.

public static FormTag FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

FormTag

The FormTag.

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

Parameters

path string

The search path.

Returns

FormTag

The FormTag.

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

Implicitly converts an Element to an instance of this class.

public static implicit operator FormTag(Element element)

Parameters

element Element

The element to convert.

Returns

FormTag

The FormTag.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

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

implicit operator FormTag(string)

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

public static implicit operator FormTag(string path)

Parameters

path string

The search path.

Returns

FormTag

The FormTag.

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.