Open Google Chrome developer tool console while C# selenium test is running, or read it programmatically
问题 Is there a way to tell WebDriver in C# Selenium tests to open Chrome developer tool console, or some other way to get console to open while running Selenium tests without breaking them? Or ability to programmatically read output to the console? So far I have tried opening console manually ( CTRL + SHIFT + I ) while test is running, but that did break the test every-time. 回答1: To open chrome console: var inSim = new WindowsInput.InputSimulator() inSim.Keyboard.KeyDown(WindowsInput.Native