Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0.0.alpha5] Failed start IE with empty port #8253

Closed
FrySabotage opened this issue Apr 28, 2020 · 2 comments · Fixed by #8255
Closed

[4.0.0.alpha5] Failed start IE with empty port #8253

FrySabotage opened this issue Apr 28, 2020 · 2 comments · Fixed by #8255

Comments

@FrySabotage
Copy link
Contributor

🐛 Bug Report

Failed start IE, using Python if port not set.
Reason is:

        RemoteWebDriver.__init__(
            self,
            command_executor='http://localhost:%d' % self.port,   # <== DEFAULT_PORT there (0)
            desired_capabilities=capabilities,
            keep_alive=keep_alive)

service will be started with another port (free_port)

To Reproduce

from selenium import webdriver
driver = webdriver.Ie()

Expected behavior

IE started without errors

Test script or set of commands reproducing this issue

from selenium import webdriver
driver = webdriver.Ie()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "selenium\webdriver\ie\webdriver.py", line 108, in __init__
    keep_alive=keep_alive)
  File "selenium\webdriver\remote\webdriver.py", line 172, in __init__
    self.start_session(capabilities, browser_profile)
  File "selenium\webdriver\remote\webdriver.py", line 269, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "selenium\webdriver\remote\webdriver.py", line 338, in execute
    self.error_handler.check_response(response)
  File "selenium\webdriver\remote\errorhandler.py", line 204, in check_response
    raise exception_class(value)
selenium.common.exceptions.WebDriverException: Message: File not found

Environment

OS: Windows 10
Browser: IE
Browser version: 11.719.18362.0
Browser Driver version: IEDriverServer 3.150.1.0
Language Bindings version: Python 4.0.0.alpha5
Selenium Grid version (if applicable): N/A

@ghost ghost added the needs-triaging label Apr 28, 2020
FrySabotage pushed a commit to FrySabotage/selenium that referenced this issue Apr 28, 2020
Service for ie and command executor contain different ports if used Default in WebDriver ctor

Fixes SeleniumHQ#8253
@AutomatedTester
Copy link
Member

I am not sure about the PR attached to this issue. Can you explain how you were using it as no one seems to have hit this issue before.

AutomatedTester added a commit that referenced this issue Apr 28, 2020
Service for ie and command executor contain different ports if used Default in WebDriver ctor

Fixes #8253

Co-authored-by: David Burns <[email protected]>
@AutomatedTester
Copy link
Member

I am not sure about the PR attached to this issue. Can you explain how you were using it as no one seems to have hit this issue before?

I misread the code, sorry. I have merged the PR. Thank you for fixing the issue!

@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants