Skip to content

running selenium with pythonw.exe fails with invalid handle #547

@ruidc

Description

@ruidc

running the following in a script via pythonw.exe:

from selenium import webdriver
profile = webdriver.FirefoxProfile()
webdriver.Firefox(firefox_profile=profile)

results in something like:

  File "zzz\selenium\webdriver\firefox\webdriver.py", line 59, in __init__
  File "zzz\selenium\webdriver\firefox\extension_connection.py", line 47, in __init__
  File "zzz\selenium\webdriver\firefox\firefox_binary.py", line 65, in launch_browser
  File "zzz\selenium\webdriver\firefox\firefox_binary.py", line 88, in _start_from_profile_path
  File "subprocess.pyc", line 702, in __init__
  File "subprocess.pyc", line 833, in _get_handles
  File "subprocess.pyc", line 884, in _make_inheritable
WindowsError: [Error 6] The handle is invalid

see also http://stackoverflow.com/questions/25203955/how-to-run-selenium-webdriver-with-pythonw

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