- Where Developers Learn, Share, & Build Careers


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 freezed.

At the end of all the tests, 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

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -