I am trying to call this method in the devtools protcol Network.setRequestInterception. So Far I have this:
IDevTools devTools = driver as IDevTools;
DevToolsSession session = devTools.CreateDevToolsSession();
session.Network.Enable(new OpenQA.Selenium.DevTools.Network.EnableCommandSettings());
session.Network.SetRequestInterception(new OpenQA.Selenium.DevTools.Network.SetRequestInterceptionCommandSettings() {
//Patterns = JsonConvert.DeserializeObject<IEnumerable<AccountDetails>>(json);
Patterns = new RequestPattern[] { new ResourceType {"Image" } }
}
I cant figure out how to call it with the correct paraneters. In the documentation, it shows the type of object it is but it is different in the selenium code. It uses this as one of the parameters and this as the function.
I am trying to call the setRequestInterception with the resourceType Image