I have updated the selenium chromedriver to 76.0.3809.68 and the existing tests started to fail with new Select(webElement).selectByVisibleText(value)
is failin
Not really a fix but this is due to the fix made for issue 3084: Find Elements not working properly in ChromeDriver 76 when prototype.js 1.6.1 is used [Pri-2], select tags are not working. Just the presence of
prototype.js` is enough this to be failed. You can try the following to recreate
test
Error:
org.openqa.selenium.WebDriverException: unknown error: script returns unexpected result
(Session info: chrome=77.0.3865.75)
If you have the control of the application you can upgrade the version of prototype.js
.