@@ -259,7 +259,7 @@ public static Task<string> GetTextAsync(this IWebBrowser browser)
259259 /// you can provide a custom implementation if you require a custom implementation</param>
260260 public static void ExecuteScriptAsync ( this IWebBrowser browser , string methodName , params object [ ] args )
261261 {
262- var script = GetScript ( methodName , args ) ;
262+ var script = GetScriptForJavascriptMethodWithArgs ( methodName , args ) ;
263263
264264 browser . ExecuteScriptAsync ( script ) ;
265265 }
@@ -990,7 +990,7 @@ public static Task<JavascriptResponse> EvaluateScriptAsync(this IWebBrowser brow
990990 /// <returns><see cref="Task{JavascriptResponse}"/> that can be awaited to perform the script execution</returns>
991991 public static Task < JavascriptResponse > EvaluateScriptAsync ( this IWebBrowser browser , TimeSpan ? timeout , string methodName , params object [ ] args )
992992 {
993- var script = GetScript ( methodName , args ) ;
993+ var script = GetScriptForJavascriptMethodWithArgs ( methodName , args ) ;
994994
995995 return browser . EvaluateScriptAsync ( script , timeout ) ;
996996 }
@@ -1052,7 +1052,7 @@ private static bool IsNumeric(this object value)
10521052 /// <param name="methodName">The javascript method name to execute</param>
10531053 /// <param name="args">the arguments to be passed as params to the method</param>
10541054 /// <returns>The Javascript code</returns>
1055- private static string GetScript ( string methodName , object [ ] args )
1055+ public static string GetScriptForJavascriptMethodWithArgs ( string methodName , object [ ] args )
10561056 {
10571057 var stringBuilder = new StringBuilder ( ) ;
10581058 stringBuilder . Append ( methodName ) ;
0 commit comments