Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

How to use CallDevToolsProtocolMethodForSession

Post Reply
tonzi
Posts: 7
Joined: Mon May 27, 2024 9:31 am

How to use CallDevToolsProtocolMethodForSession

Post by tonzi »

Dear,

Can you give a Sample for CallDevToolsProtocolMethodForSession, Thank you.

Code: Select all

procedure TMainForm.WVBrowser1AfterCreated(Sender: TObject);
...
WVBrowser1.CallDevToolsProtocolMethodForSession('', 'Network.getResponseBody', '{}', 0)

procedure TMainForm.WVBrowser1CallDevToolsProtocolMethodCompleted
  (Sender: TObject; aErrorCode: HRESULT; const aReturnObjectAsJson: wvstring;
  aExecutionID: Integer);
  ...
WVBrowser1.SubscribeToDevToolsProtocolEvent('Network.responseReceived', aExecutionID + 1);
Post Reply