File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
WebDriverManager/DriverConfigs/Impl Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ public virtual string GetName()
1616
1717 public virtual string GetUrl32 ( )
1818 {
19- return GetUrl64 ( ) ;
19+ return
20+ "https://github.com/mozilla/geckodriver/releases/download/v<version>/geckodriver-v<version>-win32.zip" ;
2021 }
2122
2223 public virtual string GetUrl64 ( )
@@ -38,12 +39,12 @@ public virtual string GetLatestVersion()
3839 var htmlCode = client . DownloadString ( "https://github.com/mozilla/geckodriver/releases" ) ;
3940 var parser = new HtmlParser ( Configuration . Default . WithDefaultLoader ( ) ) ;
4041 var document = parser . Parse ( htmlCode ) ;
41- var version = document . QuerySelectorAll ( "[class~=' release-title'] a" )
42+ var version = document . QuerySelectorAll ( ". release-title > a" )
4243 . Select ( element => element . TextContent )
4344 . FirstOrDefault ( )
4445 ? . Remove ( 0 , 1 ) ;
4546 return version ;
4647 }
4748 }
4849 }
49- }
50+ }
You can’t perform that action at this time.
0 commit comments