Key error: session id with latest GeckoDriver, FF and Selenium

I recently updated various parts of our selenium package, and when I updated GeckoDriver to the latest version (0.16.1), I started to run into the following error during setup:

KeyError: 'sessionId'

      

I know this issue has been raised here before, but I checked other threads and made sure I was following the correct process. The one-size-fits-all suggestion seems to be to make sure everything is updated correctly.

I am using a robot framework with a modified version of my Selenium2Library to write and run tests.

version for robots - 3.0.2

selenium version - 3.4.3

FF version - 53.0.3

I also tried changing my proxy settings according to the instructions in this section (I am on Mac OS X El Capitan):

Why doesn't Selena's answer have a sessionId?

All this to no avail. The only thing I can do to get my tests back to semi-functional firefox state is to lower the geckodriver level. I would like to avoid this if possible, as this new version contains some bug fixes useful to me.

Any guidance on what should I try next?

+3


source to share


2 answers


I solved this using the kernel option - I removed the three main dependencies in the original question completely and reinstalled via pip.



The latest versions are looking good. This resolved the underlying keyError for some reason. The Selenium2Library update doesn't seem to have had any effect.

0


source


Update selenium2Library version. Current version - 1.8.0

Selenium2Library



Run command pip install robotframework-selenium2library --upgrade

in cmd Problem will be resolved.

+1


source







All Articles