I'm tring to start devTools with ChromeDriver or EdgeDriver; in both cases by running this code the machine start to wait infinite when run devTools.GetDevToolsSession() (tested in debug). Without getting the devTool all works. Computer win 10, Selenuim 4.9 (we tried 4.8, 4.0 too), chromedriver 114, Chorme 114
Dim driver = New ChromeDriver(MyApp.AssetsPath)
Dim devTools As IDevTools = driver
Dim session As DevToolsSession = devTools.GetDevToolsSession()
...
We would like to access to network resources when selenium navigate to url. When we tried to avoid the problem we notice that the manager.StartMonitoring() rise the same infinite wait.
Dim driver = New ChromeDriver(MyApp.AssetsPath)
SetupNetworkLoggingAsync(driver)
...
Public Async Function SetupNetworkLoggingAsync(driver As IWebDriver) As Threading.Tasks.Task
Dim manager As NetworkManager = New NetworkManager(driver)
AddHandler manager.NetworkResponseReceived, AddressOf ResponseHandler
Await manager.StartMonitoring()
End Function
Code tested in two different computers. Have you ever encountered a similar problem?