Closed th122 closed 7 years ago
From the geckodriver release notes
IMPORTANT: If you use geckodriver with Selenium, you must upgrade to Selenium 3.3 since this release aligns HTTP responses with the WebDriver standard.
And of course it does seem to require code changes, as well:
All HTTP responses are now wrapped in {value: …} objects per the WebDriver specification; this may likely require you to update your client library
Looks like the common conundrum: remain backward-compatible or move ahead... ...Tatjana
Tried the other thing: updated selenium to 3.3.1. Things are looking better, buttest
barfs and stalls.
From test:
slipsomat> test test-suite/Magazinzettel-AsienAfrika.xml
Testing XML file: test-suite/Magazinzettel-AsienAfrika.xml
full path: /Volumes/export/Alma/Letters/HUUB-Sandbox/test-data/test-suite/Magazinzettel-AsienAfrika.xml
Exception: Message: POST /session/666cb0da-6281-fc4b-ad19-3ea97deb3eff/file did not match a known command
Traceback (most recent call last):
File "build/bdist.macosx-10.11-x86_64/egg/slipsomat/slipsomat.py", line 747, in execute
function(self.browser, *args)
File "build/bdist.macosx-10.11-x86_64/egg/slipsomat/slipsomat.py", line 677, in test_XML
file_field.send_keys(path)
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py", line 345, in send_keys
value = self._upload(local_file)
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py", line 548, in _upload
raise e
WebDriverException: Message: POST /session/666cb0da-6281-fc4b-ad19-3ea97deb3eff/file did not match a known command
Press enter to restart browser:
Thanks for starting to dig into this! I added the workaround described at http://stackoverflow.com/a/42770761/489916
Note that I added a new dependency (inquirer
) in https://github.com/scriptotek/alma-slipsomat/commit/ccf43dd6f752cea5c04c45809a577a53129f7ead . Also, I attempted to fix the "element is not clickable" error that I still get every now and then. Probably not the end of the story.
Summary: yesterday everything was still working, today it's not. In between of course I did the usual "nothing": geckodriver got updated from 0.14.0 to 0.15.0.
At startup, a
firefox
window gets opened but not addressed. Once the window is open,slipsomat
bails:Here's the
geckodriver.log
:Any ideas? I guess I'll try reverting to the previous geckodriver and see if that unbreaks things.
Tatjana