Class ButtonTag
- Namespace
- Ranorex
- Assembly
- Ranorex.Plugin.Web.dll
The HTML 'button' tag.
public class ButtonTag : WebElement, IAdapter
- Inheritance
-
ButtonTag
- Implements
- Inherited Members
Constructors
ButtonTag()
Creates a new ButtonTag adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected ButtonTag()
ButtonTag(Element)
Creates a new ButtonTag adapter instance.
public ButtonTag(Element element)
Parameters
elementElementThe element to create the adapter for.
Exceptions
- NullReferenceException
If
elementisnull.- 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
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Disabled
The 'disabled' attribute of the element.
public virtual string Disabled { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
FormAction
The 'formaction' attribute of the element.
public virtual string FormAction { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
FormEncType
The 'formenctype' attribute of the element.
public virtual string FormEncType { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
FormMethod
The 'formmethod' attribute of the element.
public virtual string FormMethod { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
FormNoValidate
The 'formnovalidate' attribute of the element.
public virtual string FormNoValidate { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
FormTarget
The 'formtarget' attribute of the element.
public virtual string FormTarget { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Name
The 'name' attribute of the element.
public virtual string Name { get; set; }
Property Value
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
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Type
The 'type' attribute of the element.
public virtual string Type { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Value
The 'value' attribute of the element.
public virtual string Value { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Methods
FromElement(Element)
Converts an Element to an instance of this class.
public static ButtonTag FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- ButtonTag
The ButtonTag.
Exceptions
- ArgumentNullException
If
elementisnull.- 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 ButtonTag FromPath(string path)
Parameters
pathstringThe search path.
Returns
- ButtonTag
The ButtonTag.
Remarks
The DefaultSearchTimeout is used to search for the specified path.
Exceptions
- ArgumentNullException
If
pathisnull.- RxPathException
If the specified
pathis not valid.- ElementNotFoundException
If no element is found.
- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
Operators
implicit operator ButtonTag(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator ButtonTag(Element element)
Parameters
elementElementThe element to convert.
Returns
- ButtonTag
The ButtonTag.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator ButtonTag(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator ButtonTag(string path)
Parameters
pathstringThe search path.
Returns
- ButtonTag
The ButtonTag.
Remarks
The DefaultSearchTimeout is used to search for the specified path.
Exceptions
- ArgumentNullException
If
pathisnull.- RxPathException
If the specified
pathis not valid.- ElementNotFoundException
If no element is found.
- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.