I would like to intercept the error messages from network Fetch/XHR
. Which method should I take or how can I make a connection and intercept this information?
I know this is necessary code base:
driver = new ChromeDriver();
driver.Manage().Window.Maximize();
devTools = driver as IDevTools;
session = devTools.GetDevToolsSession();
devToolsSession = session.GetVersionSpecificDomains<DevToolsSessionDomains>();
devToolsSession.Network.Enable(new Network.EnableCommandSettings());
I tried to create an EventHandler but unfortunately, this requestID
of event doesn't match with requestID
of the DevTools parameter. How should I get requestID
and what method do I need to intercept errors which appear on the preview page of the Network