Class JavaApplet
- Namespace
- Ranorex
- Assembly
- Ranorex.Plugin.Java.dll
This element is a Java Applet.
public class JavaApplet : Adapter, IAdapter
- Inheritance
-
JavaApplet
- Implements
- Inherited Members
Constructors
JavaApplet()
Creates a new JavaApplet adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected JavaApplet()
JavaApplet(Element)
Creates a new JavaApplet adapter instance.
public JavaApplet(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
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 JavaApplet FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- JavaApplet
The JavaApplet.
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 JavaApplet FromPath(string path)
Parameters
pathstringThe search path.
Returns
- JavaApplet
The JavaApplet.
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 JavaApplet(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator JavaApplet(Element element)
Parameters
elementElementThe element to convert.
Returns
- JavaApplet
The JavaApplet.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator JavaApplet(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator JavaApplet(string path)
Parameters
pathstringThe search path.
Returns
- JavaApplet
The JavaApplet.
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.