Click or drag to resize
Ranorex

IHost Interface

Represents a machine/device that provides UI elements that can be automated by Ranorex.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public interface IHost : IAdapter

The IHost type exposes the following members.

Properties
  NameDescription
Public propertyChildren
Gets the immediate children of this adapter.
(Inherited from IAdapter.)
Public propertyElement
The element associated with this adapter.
(Inherited from IAdapter.)
Public propertyParent
Gets the parent of this adapter.
(Inherited from IAdapter.)
Public propertyScreenRectangle
The bounding rectangle of the element in screen coordinates.
(Inherited from IAdapter.)
Public propertyVisible
True if the element is visible.
(Inherited from IAdapter.)
Top
Methods
  NameDescription
Public methodAsT
Returns an adapter of the specified type for the underlying element of the current adapter.
(Inherited from IAdapter.)
Public methodCloseApplication(Int32)
Closes an application with the specified process ID by trying to close its main window.
Public methodCloseApplication(Int32, Duration)
Closes an application with the specified process ID by trying to close its main window.
Public methodCloseApplication(Element, Duration)
Closes an application or web page which contains the specified element. If the application does not react to the close request within the specified grace period, the application process is killed.
Public methodFilterT
Filters the given element list by the specified adapter type. The returned adapter list correspond to the elements that could be converted to the specified adapter type.
(Inherited from IAdapter.)
Public methodFind(RxPath)
Applies a Ranorex Path to the adapter, returning all elements which match the path.
(Inherited from IAdapter.)
Public methodFind(RxPath, Duration)
Applies a Ranorex Path to the adapter, returning instances of a specific adapter type (e.g. Role or Capability).
(Inherited from IAdapter.)
Public methodFindChildT
Finds an immediate child element of the given capability adapter type.
(Inherited from IAdapter.)
Public methodFindChildT(String) Obsolete.
Finds an immediate child element of the given capability adapter type with a specific label.
(Inherited from IAdapter.)
Public methodFindChildrenT
Finds immediate child elements of the given capability adapter type.
(Inherited from IAdapter.)
Public methodFindChildrenT(String) Obsolete.
Finds immediate child elements of the given capability adapter type with a specific label.
(Inherited from IAdapter.)
Public methodFindDescendantT
Finds a descendant of the given capability adapter type.
(Inherited from IAdapter.)
Public methodFindDescendantT(String) Obsolete.
Finds a descendant of the given capability adapter type with a specific label.
(Inherited from IAdapter.)
Public methodFindDescendantsT
Finds all descendants of the given capability adapter type.
(Inherited from IAdapter.)
Public methodFindDescendantsT(String) Obsolete.
Finds all descendants of the given capability adapter type with a specific label.
(Inherited from IAdapter.)
Public methodFindSingle(RxPath)
Applies a Ranorex Path to the adapter, returning an Element.
(Inherited from IAdapter.)
Public methodFindSingle(RxPath, Duration)
Applies a Ranorex Path to the adapter, returning an Element.
(Inherited from IAdapter.)
Public methodGetDevToolsSession
Get the devtools session.
Public methodKillApplication
Kills the process which contains the specified element.
Public methodOpenBrowser(String, String)
Opens a web page in the specified browser.
Public methodOpenBrowser(String, String, String, Boolean, Boolean, Boolean, Boolean, Boolean) Obsolete.
Opens a web page in the specified browser.
Public methodOpenBrowser(String, String, String, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Opens a web page in the specified browser.
Public methodOpenBrowser(String, String, String, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean) Obsolete.
Opens a web page in the specified browser.
Public methodOpenBrowser(String, String, String, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Opens a web page in the specified browser.
Public methodTryFindSingle(RxPath, Element)
Tries to apply a Ranorex Path to the adapter, returning an Element.
(Inherited from IAdapter.)
Public methodTryFindSingle(RxPath, Duration, Element)
Tries to apply a Ranorex Path to the adapter, returning an Element.
(Inherited from IAdapter.)
Public methodTryFindSingleT(RxPath, T)
Tries to apply a Ranorex Path to the adapter, returning a specific adapter type (e.g. Role or Capability).
(Inherited from IAdapter.)
Public methodTryFindSingleT(RxPath, Duration, T)
Tries to apply a Ranorex Path to the adapter, returning a specific adapter type (e.g. Role or Capability).
(Inherited from IAdapter.)
Top
Extension Methods
  NameDescription
Public Extension MethodTryGetAsWebDriverEndpoint
Tries to convert the current host to a WebDriver endpoint.
(Defined by HostExtensions.)
Top
See Also