简体   繁体   中英

chromedriver.exe hangs when running multiple test cases

When I ran around 500 test cases in one NUnit session, some test cases were launching a blank browser and the test cases are failing. This issue is reproduced consistently. I googled a lot and found this solution , but it doesn't seem to be working.

There are two error Messages as given below,

  1. chromedriver.exe stopped working.
  2. The HTTP request to the remote WebDriver server for URL session timed out after 60 seconds.

Specification

  • chromedriver version is = 2.22.397933
  • Google Chrome version is = 51.0.2704.106 m (64-bit)
  • Nunit version = 3.4.1.
  • Webdriver version = 2.53.1.0.

What am I missing? Any help would appreciated.

Below are the screenshots of the blank browser that gets open.

Hanged_broweser_Image1

Hanged_broweser_Image2

Have faced similar kind of issue while working with selenium-java and found out that if multiple chromedriver processes are loaded, then it will fail the tests.So,make sure that the older processes are not active while you run your tests. Also, include a method to clear the cookies in the scripts as this can be a major reason for the issue you are facing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM