'Trying to use Edgewebbrowsers SubscribeToCDPEvent

Delphi has a demo with EdgeBrowser I am trying to Subscribe to DevToolsProtocol using the follow.

   EdgeBrowser.SubscribeToCDPEvent('Log.enable');
   EdgeBrowser.SubscribeToCDPEvent('Log.entryAdded');

but EdgeBrowserDevToolsProtocolEventReceived never fires. Any help?



Solution 1:[1]

EdgeBrowser1.DefaultInterface.OpenDevToolsWindow;

starts DevTools

Remember, the WebBrowser component does not have this command, it only exists in the EdgeBrowser component.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Softacom