Skip to content

[🐛 Bug]: Exception 'internet explorer is not a valid browser' in IE after upgrading to 4.9.0 #11928

@dyadav7

Description

@dyadav7

What happened?

Updated to 4.9 and getting below error exception

      raise SeleniumManagerException(
       selenium.common.exceptions.SeleniumManagerException: Message: internet explorer is not a valid browser.  Choose one of: ['chrome', 'firefox', 'edge', 'MicrosoftEdge', 'ie']

How can we reproduce the issue?

Use `self.browser = selenium.webdriver.ie.webdriver.WebDriver()`

Relevant log output

File "D:\\scripts\python\test.py", line 44, in __init__
self.browser = selenium.webdriver.ie.webdriver.WebDriver()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\DIR1\\Python\Python311\Lib\site-packages\selenium\webdriver\ie\webdriver.py", line 127, in __init__
self.iedriver.path = DriverFinder.get_path(self.iedriver, options)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\DIR1\\Python\Python311\Lib\site-packages\selenium\webdriver\common\driver_finder.py", line 43, in get_path
            raise err
File "C:\DIR1\\Python\Python311\Lib\site-packages\selenium\webdriver\common\driver_finder.py", line 40, in get_path
           path = shutil.which(service.path) or SeleniumManager().driver_location(options)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\DIR1\\Python\Python311\Lib\site-packages\selenium\webdriver\common\selenium_manager.py", line 84, in 
   driver_location
       raise SeleniumManagerException(
       selenium.common.exceptions.SeleniumManagerException: Message: internet explorer is not a valid browser.  Choose one of: ['chrome', 'firefox', 'edge', 'MicrosoftEdge', 'ie']

Operating System

Windows 11

Selenium version

4.9

What are the browser(s) and version(s) where you see this issue?

IE

What are the browser driver(s) and version(s) where you see this issue?

IE

Are you using Selenium Grid?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-pyPython BindingsI-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions