WebDriverException: Message: <!-- IE friendly error message walkround

Hello everyone,

I have an error when I run my Tests, they fail only in my computer…

The message is :

WebDriverException: Message:

[ Message content over the limit has been removed. ]

The webserver reported that an error occurred while trying to access the website. Please return to the previous page.

I don’t understant what is the origin of this problem, I just have look for browsers and webdrivers versions, they are in compatibility between themselves, if someone can help me please…

Thank you so much

Hi Brahim,

That’s a pretty generic error, and it seems you trimmed out the bits that actually tells you why you got that error, so you’ve made it difficult for anyone to help you.

Can you show the whole error message?

Dave.

Hi Dave,

Thank you for your answer,

I had reinstall all Python etc, now I have this message :

WebDriverException: Message: Service geckodriver unexpectedly exited. Status code was: 64

I don’t understand why, because the compatibility between my drivers and my browsers are good, and all is good in my environment variables :frowning:

Hi @Brahim,

A quick google of that error seems to indicates its a generic error that gets thrown when geckodriver is used incorrectly (possibly an invalid command line option?)

can we start with

  1. an example robot file that will produce this error for you
  2. your os and its version
  3. your python version
  4. the version of your python modules (robot framework, framework-browser, etc)
  5. your nodejs version
  6. did you run rfbrowser init after you re-installed?

I’m not an expert on framework-browser, but i’ll try to help, just need to know what the starting point is.

Hi Dave,

Thank you so much for your help,

1 : this is an example robot file that will produce this error for me :

*** Settings ***

Library Selenium2Library

*** Test Case ***

Test Case 1

Open Browser    https://www.google.com/    Firefox

Maximize Browser Window

Close Browser

2 : My OS and the version :
Microsoft Windows 10 Entreprise LTSC Version 10.0.17763 Build 17763

3 : My Python version :
Python 3.7

4 : My Python modules versions :
Package Version


async-generator 1.10
attrs 21.2.0
backports.cached-property 1.0.1
backports.entry-points-selectable 1.1.1
certifi 2021.10.8
cffi 1.15.0
charset-normalizer 2.0.9
colorama 0.4.4
configparser 5.2.0
coverage 6.2
crayons 0.4.0
cryptography 36.0.1
decorator 5.1.0
distlib 0.3.4
filelock 3.4.0
grpcio 1.43.0
grpcio-tools 1.43.0
h11 0.12.0
idna 3.3
importlib-metadata 4.9.0
jsonpath-rw 1.4.0
jsonpath-rw-ext 1.2.2
outcome 1.1.0
overrides 6.1.0
pbr 5.8.0
pip 21.3.1
platformdirs 2.4.0
pluggy 0.13.1
ply 3.11
protobuf 3.19.1
py 1.11.0
pycparser 2.21
pyOpenSSL 21.0.0
requests 2.26.0
robotframework 4.1.3
robotframework-assertion-engine 0.2.0
robotframework-browser 11.1.1
robotframework-jsonlibrary 0.3.1
robotframework-pythonlibcore 3.0.0
robotframework-requests 0.9.2
robotframework-selenium2library 3.0.0
robotframework-seleniumlibrary 5.1.3
selenium 4.1.0
setuptools 39.0.1
six 1.16.0
sniffio 1.2.0
sortedcontainers 2.4.0
tox 3.0.0
trio 0.19.0
trio-websocket 0.9.2
typing_extensions 4.0.1
typing-utils 0.1.0
urllib3 1.26.7
virtualenv 20.10.0
webdriver-manager 3.5.2
wrapt 1.13.3
wsproto 1.0.0
zipp 3.6.0

5 : My nodejs version :
v16.13.1

6 : for rfbrowser init, yes I dit it, there was no problem retourning

Thank you so much Dave :slight_smile:

Hi @Brahim,

Ok that clears up a little confusion, firstly you posted this in the wrong area, this section if for browser library not selenium. FYI browser library uses playwright instead of selenium to drive the web browser, but I notice you don’t even have browser library installed, so that was part of the confusion.

Next you should not be using Selenium2Library, it’s old and deprecated, you should use the much newer and maintained SeleniumLibrary. Selenium2Library was only there to ease the migration when both were at version 3.0.0, so i’m not surprised given SeleniumLibrary is version 5.1.3 that Selenium2Library is not working with much newer webdrivers (in this case gecko driver) and much newer selenium versions.

I suggest you retry your scripts with SeleniumLibrary instead of Selenium2Library, then if you are still having issues post again in the Selenium section of this forum

Dave.

Hello Dave,

Thank you, I just have to retry with SeleniumLibrary, it’s same issue, I’ll post it in the good section.

Brahim

Hello,

For your information, I have just encountered your issue and after many time passed on the understanding, I have found what is wrong : incompatibility between some libraries.

Indeed, in my case, I have update robotframework-seleniumlibrary with the last update. But when I have do this, the library selenium has been updated at the same time, and induced the error.

I have rollback with the previous version and all is OK.

I hope this will help you, even if the problem dates from more 1 year :slight_smile: