I have found the following code snippet for finding out if a test is executed on a Selenium endpoint:
Code: Select all
public static void CloseSession()
{
var webDriverEndpoint = Host.Current.TryGetAsWebDriverEndpoint();
if(webDriverEndpoint == null)
Report.Info("Selenium", "Test is currently not running on a selenium Endpoint");
else
<your code here>
But how do I address the "driver" Ranorex has instantiated?