C# c中硒2的一种例外方法#
我用Java代码移植到c#。我想用c重新编写以下Java代码。提前感谢:)C# c中硒2的一种例外方法#,c#,selenium-webdriver,onexception,C#,Selenium Webdriver,Onexception,我用Java代码移植到c#。我想用c重新编写以下Java代码。提前感谢:) 类似的翻译如下: public void OnException(System.Exception异常,IWebDriver驱动程序) { WriteLine(“每当抛出异常时调用OnException…”); } 这是一个极不正确的说法。肯定有一个EventFiringWebDriver的实现。它位于WebDriver.Support.dll程序集中。 // Called whenever an exception w
类似的翻译如下:
public void OnException(System.Exception异常,IWebDriver驱动程序)
{
WriteLine(“每当抛出异常时调用OnException…”);
}
这是一个极不正确的说法。肯定有一个EventFiringWebDriver的实现。它位于WebDriver.Support.dll程序集中。
// 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 ...");
}