diff --git a/CefSharp/WebBrowserExtensions.cs b/CefSharp/WebBrowserExtensions.cs index dc0a94127d..eb6e19353d 100644 --- a/CefSharp/WebBrowserExtensions.cs +++ b/CefSharp/WebBrowserExtensions.cs @@ -471,9 +471,7 @@ public static Task LoadUrlAsync(IChromiumWebBrowserBase ch /// , you can provide a custom implementation if you require one. public static void ExecuteScriptAsync(this IWebBrowser browser, string methodName, params object[] args) { - var script = GetScriptForJavascriptMethodWithArgs(methodName, args); - - browser.ExecuteScriptAsync(script); + browser.BrowserCore.ExecuteScriptAsync(methodName, args); } ///