ChromeDriver 76.0.3809.68 is throwing exception with SelectByVisibleText method: Script returns unexpected result

后端 未结 6 2079
梦毁少年i
梦毁少年i 2021-01-14 09:09

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

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-14 09:43

    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 ofprototype.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.

提交回复
热议问题