[Chennaipy] Selenium Exception

Rengaraj D sakthirengaraj at gmail.com
Sat Jul 10 00:08:35 EDT 2021


On Sat, 10 Jul 2021 at 08:20, Gopi jack <jackgopi494 at gmail.com> wrote:

> Hi,
>    The complete console error message is
>
> Traceback (most recent call last):
>   File "namma.py", line 12, in <module>
>     driver=webdriver.Firefox(options=opts)
>   File
> "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/firefox/webdriver.py",
> line 170, in __init__
>     RemoteWebDriver.__init__(
>   File
> "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py",
> line 157, in __init__
>     self.start_session(capabilities, browser_profile)
>   File
> "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py",
> line 252, in start_session
>     response = self.execute(Command.NEW_SESSION, parameters)
>   File
> "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py",
> line 321, in execute
>     self.error_handler.check_response(response)
>   File
> "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/errorhandler.py",
> line 242, in check_response
>     raise exception_class(message, screen, stacktrace)
> selenium.common.exceptions.TimeoutException: Message: connection refused
>


There is a chance that libraries are not compatible with the browser
version,

Check below,

Gecko, selenium and firefox  version requirements.
If there is a mismatch in the library versions you may get errors like this.

Regards
Rengaraj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/chennaipy/attachments/20210710/3d1b081e/attachment-0001.html>


More information about the Chennaipy mailing list