Class MobileForm
- Namespace
- Ranorex
- Assembly
- Ranorex.Plugin.Mobile.dll
Capability that adds additional information to forms on a mobile device.
public class MobileForm : Adapter, IAdapter
- Inheritance
-
MobileForm
- Implements
- Inherited Members
Constructors
MobileForm()
Creates a new MobileForm adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected MobileForm()
MobileForm(Element)
Creates a new MobileForm adapter instance.
public MobileForm(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
FormType
Further classification of an element of type 'Form' for mobile applications. E.g a Form will get the sub classification 'Dialog', 'Pop-up', 'MainWindow'... .
public virtual string FormType { get; }
Property Value
RequiredCapabilities
Capabilities required by the adapter implementation.
protected override string[] RequiredCapabilities { get; }
Property Value
- string[]
Methods
FromElement(Element)
Converts an Element to an instance of this class.
public static MobileForm FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- MobileForm
The MobileForm.
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 MobileForm FromPath(string path)
Parameters
pathstringThe search path.
Returns
- MobileForm
The MobileForm.
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 MobileForm(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator MobileForm(Element element)
Parameters
elementElementThe element to convert.
Returns
- MobileForm
The MobileForm.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator MobileForm(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator MobileForm(string path)
Parameters
pathstringThe search path.
Returns
- MobileForm
The MobileForm.
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.