File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
WebDriverManager/DriverConfigs/Impl Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11using System . Linq ;
22using System . Net ;
3+ using System . Net . Security ;
4+ using System . Security . Cryptography . X509Certificates ;
35using AngleSharp ;
46using AngleSharp . Parser . Html ;
57
@@ -19,7 +21,8 @@ public virtual string GetUrl32()
1921
2022 public virtual string GetUrl64 ( )
2123 {
22- return "https://github.com/mozilla/geckodriver/releases/download/v<version>/geckodriver-v<version>-win64.zip" ;
24+ return
25+ "https://github.com/mozilla/geckodriver/releases/download/v<version>/geckodriver-v<version>-win64.zip" ;
2326 }
2427
2528 public virtual string GetBinaryName ( )
@@ -29,6 +32,7 @@ public virtual string GetBinaryName()
2932
3033 public virtual string GetLatestVersion ( )
3134 {
35+ ServicePointManager . SecurityProtocol = SecurityProtocolType . Tls12 ;
3236 using ( var client = new WebClient ( ) )
3337 {
3438 var htmlCode = client . DownloadString ( "https://github.com/mozilla/geckodriver/releases" ) ;
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ public virtual string GetBinaryName()
2929
3030 public virtual string GetLatestVersion ( )
3131 {
32+ ServicePointManager . SecurityProtocol = SecurityProtocolType . Tls12 ;
3233 using ( var client = new WebClient ( ) )
3334 {
3435 var htmlCode = client . DownloadString ( "https://github.com/operasoftware/operachromiumdriver/releases" ) ;
You can’t perform that action at this time.
0 commit comments