rahulshettyacademy / Automation

12 stars 156 forks source link

Chromedriver seems outdated #2

Open supadrasta opened 1 year ago

supadrasta commented 1 year ago

Hi Rahul - I was following your course on Azure DevOps and ran into an error with chromedriver. How do we update ? Any help ? Thanks

SjoerdTimovanVliet commented 1 year ago

@rahulshettyacademy @supadrasta Got the same issue

SjoerdTimovanVliet commented 1 year ago

@supadrasta did you solve it?

ellvtr commented 9 months ago

@rahulshettyacademy, I have the same issue. I updated to newer drivers but I kept getting similar errors, see below. It seems that it must be an exact match with the Chrome version 118.0.5993.118 in this case. I cannot find a driver with that precise version.

After spending half a day on this, I hacked the test to be always true, just to move on with the course.

By the way, why does it use a Windows driver, when the agent is Ubuntu?

2023-11-15T14:41:02.9216316Z Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.36 sec <<< FAILURE!
2023-11-15T14:41:02.9218567Z getData(Academy.BrowserTest)  Time elapsed: 6.329 sec  <<< ERROR!
2023-11-15T14:41:02.9219818Z org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 119
2023-11-15T14:41:02.9222207Z Current browser version is 118.0.5993.118 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
2023-11-15T14:41:02.9228131Z Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
2023-11-15T14:41:02.9229279Z System info: host: 'fv-az33-100', ip: '10.1.0.43', os.name: 'Windows Server 2019', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_392'
2023-11-15T14:41:02.9230127Z Driver info: driver.version: ChromeDriver

image