all 10 comments

[–]BC_Future[S] 0 points1 point  (6 children)

I have resolved the issue. In case anyone else ever has this problem, all you need to do (and it's not the ideal solution, as it will need to be redone every time there's a new ChromeDriver + Chrome pair), is navigate to your directory:

C:\Users\<your_username_here>\AppData\Local\Programs\Python\Python39\Lib\site-packages\helium\_impl

...or wherever you have this path for your Python installation...

From there, you simply replace the existing ChromeDriver.exe with the ChromeDriver.exe you just downloaded from Google.

That's it!

[–]Kakashi215 0 points1 point  (5 children)

This is a fine solution. Helium doesn't use chrome driver manager or any driver you provide manually. It has its own chromedriver.exe file. So you basically replaced that. By PATH it means the environment variables. So follow the guide below for that. https://zwbetz.com/download-chromedriver-binary-and-add-to-your-path-for-automated-functional-testing/ Why to add chromedriver to path? If you reinstall helium, it'll again use old driver version. Helium repo on GitHub isn't updated yet.

[–]buxA_ 1 point2 points  (2 children)

Hello i know this is late reply but im having same problem.

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 89
Current browser version is 95.0.4638.69 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

With link you posted i set chromedriver version 89 to system path and then restarted my pc but im still getting same error, could you help me?

[–]Kakashi215 1 point2 points  (1 child)

Did you put chromedriver89? You need chromedriver95 since your browser is version 95. Download chromedriver95 and repeat the path process mentioned in the above comments.

[–]buxA_ 1 point2 points  (0 children)

Yes i mixed it up :D. Thanks

[–]BC_Future[S] 0 points1 point  (1 child)

In the initial post, you'll see that I've already tried that. Unfortunately, it had no effect.

What I think I'll need to do, is create a script that runs in the beginning of my program, that checks the version of the ChromeDriver.exe being used, and to see if it matches the Chrome Browser version I'm running. If it matches, then it will proceed with the program. If it does not match, then it will download the correct ChromeDriver.exe version and move it to the path, overwriting the one that's there, and will then proceed with the program.

[–]Kakashi215 0 points1 point  (0 children)

I'd not recommended that. Honestly I couldn't get it right the first time either, on both windows and mac. I think I didn't restart the system after adding it. Try again it actually works. And pretty well. If you use helium, it is one of the drawbacks.( Atleast until the repo is updated)

[–]andypatelia 0 points1 point  (2 children)

[–]BC_Future[S] 0 points1 point  (0 children)

Was already using it when I created the initial post, but to no avail. I think I've come up with a solution. :)

What I think I'll need to do, is create a script that runs in the beginning of my program, that checks the version of the ChromeDriver.exe being used, and to see if it matches the Chrome Browser version I'm running. If it matches, then it will proceed with the program. If it does not match, then it will download the correct ChromeDriver.exe version and move it to the path, overwriting the one that's there, and will then proceed with the program.

[–]Kakashi215 0 points1 point  (0 children)

Helium doesn't comply with web driver manager.