I can do this using Fetch
commands in Java but I am not able to do it using C#. Does anyone has some sample snippet?
IDevTools devTools = driver as IDevTools;
var session = devTools.GetDevToolsSession();
var domains = session.GetVersionSpecificDomains<DevToolsSessionDomains>();
domains.Fetch.Enable(new OpenQA.Selenium.DevTools.V108.Fetch.EnableCommandSettings());
When I try to use Fetch
in C#, I don't see it accepting RequestPattern
as parameter and moving forward I need to add a listener for Fetch.requestPaused
. Any help in this regard would be appreciated.