Open ghost opened 6 years ago
Maybe that' because grid extras was not strated as admin
Actually, if you run the grid and try to open localhost:3000/download_geckodriver you'll notice that it tries to download a file that doesn't exist, i.e. { "exit_code": 1, "out": [], "error": [ "java.io.FileNotFoundException: https://github.com/mozilla/geckodriver/releases/download/v0.19.0/geckodriver-v0.19.0-linuxnull.tar.gz" ], "source_url": [ "https://github.com/mozilla/geckodriver/releases/download/v0.19.0/geckodriver-v0.19.0-linuxnull.tar.gz" ], "file_full_path": [ "/tmp/webdriver/geckodriver/geckodriver_0.19.0.tar.gz" ], "file": [ "geckodriver_0.19.0.tar.gz" ] }
The real path is e.g. for 64bit linux: https://github.com/mozilla/geckodriver/releases/download/v0.19.0/geckodriver-v0.19.0-linux64.tar.gz
You can also download such file manually and place it in the /tmp/webdriver/geckodriver/ folder and unpack it there. But note I think that since 0.19 requires selenium 3.5 and seems that SGE doesn't work with selenium 3.5 it'll fail even if it's there.
EDIT: I just figured out the problem, in your selenium_grid_extras.json file, you'll find the necessary section for the "geckodriver" which probably looks like this:
"geckodriver": {
"version": "0.19.0"
},
if you extend it with "bit":"64", i.e.
"geckodriver": {
"bit": "64",
"version": "0.19.0"
},
it should successfully download it on the next run.
I've had geckodriver
version 0.19.0
installed just fine without the bit
config for some reason, but I got the same issue when trying to update to 0.19.1
. Adding "bit": "32"
to the config fixed the problem for me.
Chunk from selenium_grid_extras_config.json
When I start grid extar it states that it downloads gekodriver 0.19.0 but in fact it doesn't As the result, when I run tests I get the following