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

            return((T)v);
        }