Skip to content

Error while executing test with more than 5 chrome instances open in Selenium-Python #536

@rasagjnya

Description

@rasagjnya

Hi, I have a script where there are 8 test methods each opening a chrome browser and keeping it open (without driver.quit()). After the completion of 5 methods an error comes as below:

"Traceback (most recent call last):
File "C:\Python34\lib\site-packages\selenium\webdriver\chrome\service.py", line 63, in start
self.service_args, env=env, stdout=PIPE, stderr=PIPE)
File "C:\Python34\lib\subprocess.py", line 754, in init
_cleanup()
OSError: [WinError 6] The handle is invalid

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "..\SeleniumAutomation\common\common_settings.py", line 126, in setup_selenium
driver = CommonSettings.setup_server(self.executionFlag)
File "..\SeleniumAutomation\common\common_settings.py", line 168, in setup_server
driver = CommonSettings.getdriver(executionFlag)
selenium.common.exceptions.WebDriverException: Message: ChromeDriver executable needs to be available in the path. Please download from http://chromedriver.storage.googleapis.com/index.html and read up at http://code.google.com/p/selenium/wiki/ChromeDriver"

Pleae let me know if there's any way to get around this because its causing many issues.

Thank You

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-pyPython Bindings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions