Selenium webdriver factory does not work with the latest chrome version.
We have some interfaces running, which uses selenium nodes with chrome browser. Unfortunately the chrome update on Knime server is automatic, and everytime a version update is made that is not supported by selenium the workflow fails.
Execute failed: session not created: This version of ChromeDriver only supports Chrome version 107 Current browser version is 109.0.5414.75 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe (Driver info: chromedriver=107.0.5304.62 (1eec40d3a5764881c92085aaee66d25075c159aa-refs/branch-heads/5304@{#942}),platform=Windows NT 10.0.17763 x86_64) (WARNING: The server did not provide any stacktrace information)
Can you please upgrade selenium to support the latest chrome version?
Thanks for the details - that’s indeed the currently latest version. This version actually ships with ChromeDriver v108.0.5359.71, which should still work fine also with Chrome 109.x (just verified locally).
As your log output suggests a different driver version: Can it be that you manually changed the ChromeDriver location through the preferences?
Could you please send me the debug logs to mail@seleniumnodes.com to have a closer look? So far I cannot see why an older driver version is used, but hopefully the logs will tell.
Enable DEBUG in the Preferences KNIME GUI → Console View Log Level, re-execute the failing node, and copy the text from the “Console” tab.
Thank you very much. I’m quoting below from the log, as this information is non-confidential:
DEBUG Start WebDriver 6:278 Using included binary at path: C:\Program Files\KNIME\plugins\ws.palladian.nodes.selenium.binaries.win64_4.11.0.202211191754\binaries\chromedriver.exe
This suggests, that there’s still an old version (4.11.0) of the plugin installed, which contains an old driver version. Maybe something during installation went wrong. Could you please try:
(a) Start KNIME once with the “clean” parameter (see here)
(b) If this does not help, please uninstall the Selenium Nodes and re-install them (please ensure to use the proper update site URL; see here)
Independently of that, please have a look at FAQ#32 regarding the bundled Chromium. This avoids any such issues due to version imparities.
Update of the selenium locally with clean knime fixed the issue on the knime client.
Server was already on the right version, knime clean and restart surprisingly fixed the error there as well :).