Here are the examples of the csharp api class Golem.WebDriver.EventFiringWebDriver.OnScriptExecuted(OpenQA.Selenium.Support.Events.WebDriverScriptEventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
Project: ProtoTest.Golem
Source File: EventFiringWebDriver.cs
Source File: EventFiringWebDriver.cs
public object ExecuteScript(string script, params object[] args) { var javaScriptExecutor = WrappedDriver as IJavaScriptExecutor; if (javaScriptExecutor == null) throw new NotSupportedException("Underlying driver instance does not support executing javascript"); object obj; try { var objArray = UnwrapElementArguments(args); var e = new WebDriverScriptEventArgs(WrappedDriver, script); OnScriptExecuting(e); obj = javaScriptExecutor.ExecuteScript(script, objArray); OnScriptExecuted(e); } catch (Exception ex) { OnException(new WebDriverExceptionEventArgs(WrappedDriver, ex)); throw; } return obj; }
0
2. Example
Project: ProtoTest.Golem
Source File: EventFiringWebDriver.cs
Source File: EventFiringWebDriver.cs
public object ExecuteAsyncScript(string script, params object[] args) { var javaScriptExecutor = WrappedDriver as IJavaScriptExecutor; if (javaScriptExecutor == null) throw new NotSupportedException("Underlying driver instance does not support executing javascript"); object obj; try { var objArray = UnwrapElementArguments(args); var e = new WebDriverScriptEventArgs(WrappedDriver, script); OnScriptExecuting(e); obj = javaScriptExecutor.ExecuteAsyncScript(script, objArray); OnScriptExecuted(e); } catch (Exception ex) { OnException(new WebDriverExceptionEventArgs(WrappedDriver, ex)); throw; } return obj; }