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.


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -