Click or drag to resize
Ranorex

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
Syntax
public static IWebDriverEndpoint TryGetAsWebDriverEndpoint(
	this IHost host
)

Parameters

host
Type: Ranorex.CoreIHost
The host instance to convert.

Return Value

Type: IWebDriverEndpoint
The 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