Example #1
0
 public static void ExecuteJavaScript(this ScreenShotRemoteWebDriver driver, string script)
 {
     driver.ExecuteScript(script);
 }
Example #2
0
        public static T ExecuteJavaScriptAndGetValue <T>(this ScreenShotRemoteWebDriver driver, string script)
        {
            object v = driver.ExecuteScript(string.Format("return {0}", script));

            return((T)v);
        }