Issue
This is my first time to have a post here; however, I have learnt so much valuable knowledge from the forum. Hope to have some advice from experts for my below issue.
My Python program is set up to access an internal website through Google Chrome requiring selection of valid certificate to perform some actions. I have used Selenium and Google Group policies: AutoSelectCertificateForUrls
to automatically select required certificate without any problems so far.
However, given recent changes of Google Chrome, I have to manually download a new chrome driver for Google Chrome whenever it updates to a newer version. I tried many ways to disable Google Chrome update but it keeps updating.
I see "Chrome for Testing" could be a solution because it will not be automatically updated.
However, using "Chrome for Testing" requires my program to manually select valid certificate even though AutoSelectCertificateForUrls
was set up for Google Chrome.
I think I need to set up Google Group policies: AutoSelectCertificateForUrls separately for "Chrome for Testing"; but still can't find a way.
Please help.
Thanks
I tried to create a new registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome for Testing\AutoSelectCertificateForUrls along with HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\AutoSelectCertificateForUrls
but it only works for Google Chrome, not for Chrome for Testing browser.
I also tried to move the folder chrome-win64
containing Chrome for Testing application to the same position with the original Google Chrome but still failed.
Solution
However, given recent changes of Google Chrome, I have to manually download a new chrome driver for Google Chrome whenever it updates to a newer version
Regarding your statement above, you don't really have to manually download each time the Google Chrome gets updated. If you are using the latest selenium, the new built-in tool Selenium Manager, will do the driver management for you. Whenever there is an update to Google Chrome, selenium will automatically download the matching chromedriver.exe
from web and use it in your code.
Refer below answers for more info:
- https://stackoverflow.com/a/76463081/7598774
- https://stackoverflow.com/a/76574264/7598774
- https://stackoverflow.com/a/77111183/7598774
Answered By - Shawn
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.