 | HostExtensionsTryGetAsWebDriverEndpoint Method |
Tries to convert the current host to a WebDriver endpoint.
Namespace:
Ranorex.Core
Assembly:
Ranorex.Plugin.WebDriver (in Ranorex.Plugin.WebDriver.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static IWebDriverEndpoint TryGetAsWebDriverEndpoint(
this IHost host
)
<ExtensionAttribute>
Public Shared Function TryGetAsWebDriverEndpoint (
host As IHost
) As IWebDriverEndpoint
Parameters
- host
- Type: Ranorex.CoreIHost
The host instance to convert.
Return Value
Type:
IWebDriverEndpointThe WebDriver endpoint used as the current host,
null if the current host
is not a WebDriver endpoint.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IHost. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also