How to implement the click?
CodePudding user response:
Can consider to simulate mouse tryCodePudding user response:
Use the following code, this problem should be to the how to organize the JS codeprocedure TForm1. Button1Click (Sender: TObject);
Var
Doc: IHTMLDocument2;
The begin
Doc:=WebBrowser1. Document as IHTMLDocument2;
Doc. ParentWindow. ExecScript (' alert (" ok "); ', 'javascript');
end;
CodePudding user response:
Find links TAB, and then directly with Olevariant calls its Click method