0

Am porting by Java codes to c#. I wanted to re-write the following Java code in c#. Thanks in advance :)

// Called whenever an exception would be thrown.
    public void onException(java.lang.Throwable throwable, WebDriver driver){
        System.out.println("onException' Called whenever an exception would be thrown ...");
    }
Ibexy I
  • 1,123
  • 6
  • 16
  • 29

1 Answers1

1

A like to like translation is as follow:

public void OnException(System.Exception exception, IWebDriver driver)
{
    Console.WriteLine("OnException' Called whenever an exception would be thrown ...");
}
xing
  • 447
  • 2
  • 6
  • This is a spectacularly incorrect statement. There most certainly is an implementation of EventFiringWebDriver. It's located in the WebDriver.Support.dll assembly. – JimEvans Oct 23 '12 at 11:26