c# - Selenium ChromeDriver stops working on Quit() -
Using MSTest in Visual Studio, I have a problem with Selenium WebDriver, in particular, ChromeDriver Whenever I get out of the chrome driver, I get the message "chromeaderier .exe" has stopped working "and the program is freeze.
At the end of all the tests I have all my drivers Class cleanup:
[code] [classclinify] Public Static Wide Class Clan () {Drivers. Forac (X => X. Quit ());}
firefox driver fine ny Che stops, but the chrome driver always stops working. Can anyone help me with this?
Edit: For a bit more clarity of my code, (chromedriver The exe program that I've added to my solution):
Fixed IWebDriver driver; Fixed IWebDriver chromeDriver; Fixed String baseURL; Fixed list & lt; IWebDriver & gt; driver; [Classicalize] Public Static zero classInitialize (TestContext reference) {driver = new suggestion} & Lt; IWebDriver & gt; (); drivers = new Fayrfoksdraivr (); Kromdraivr = new Kromdraivr (route); Drivers.Add (driver); Drivers.Add (chromeDriver); BaseURL = "http: // Localhost: 4444 /"; }
An answer has solved my problem.
The first driver version ends and closes without any problems, it has fixed the problem for me.