I'm using CoreWebView2(Microsoft Edge) from Delphi 11 to Execute JavaScripts on web pages. The problem is that I execute script without any problem for the first time. for example the script shown below:
let x = 0;
alert("Hello");
When just execute "alert" command, it works without any problem for countless times of run. But when you run any other command lines except "alert" command, the second run of ExecuteScript fails with no errors but doesn't respond.
The whole code is like shown below:
procedure TBrowserFrame.Button2Click(Sender: TObject);
var
s: string;
begin
s:= 'let x = 0;alert("uu");';
WVBrowser1.CoreWebView2.ExecuteScript(s,0,WVBrowser1);
end;
Boolean
result?