public static T ExecuteJavascript <T>(this IWebElement element, IJavascript javascript, params object[] arguments) { return(javascript.Execute <T>(((WebElement)element).SeleniumElement)); }
public static T ExecuteJavascript <T>(this IWebDriver driver, IJavascript javascript, params object[] arguments) { return(javascript.Execute <T>(driver)); }