Table of Contents

Class KeyGenTag

Namespace
Ranorex
Assembly
Ranorex.Plugin.Web.dll

The HTML5 'keygen' tag.

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

Constructors

KeyGenTag()

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

protected KeyGenTag()

KeyGenTag(Element)

Creates a new KeyGenTag adapter instance.

public KeyGenTag(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.

Challenge

The 'challenge' attribute of the element.

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

KeyType

The 'keytype' attribute of the element.

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

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

Parameters

element Element

The element to convert.

Returns

KeyGenTag

The KeyGenTag.

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

Parameters

path string

The search path.

Returns

KeyGenTag

The KeyGenTag.

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

Implicitly converts an Element to an instance of this class.

public static implicit operator KeyGenTag(Element element)

Parameters

element Element

The element to convert.

Returns

KeyGenTag

The KeyGenTag.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

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

implicit operator KeyGenTag(string)

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

public static implicit operator KeyGenTag(string path)

Parameters

path string

The search path.

Returns

KeyGenTag

The KeyGenTag.

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.