File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
WebDriverManager/DriverConfigs/Impl Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public virtual string GetLatestVersion()
3434 var htmlCode = client . DownloadString ( "https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver" ) ;
3535 var parser = new HtmlParser ( Configuration . Default . WithDefaultLoader ( ) ) ;
3636 var document = parser . Parse ( htmlCode ) ;
37- var version = document . QuerySelectorAll ( "[class='driver-download'] p" )
37+ var version = document . QuerySelectorAll ( "[class='driver-download'] a + p" )
3838 . Select ( element => element . TextContent )
3939 . FirstOrDefault ( )
4040 ? . Split ( ' ' ) [ 1 ]
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public virtual string GetLatestVersion()
3636 var htmlCode = client . DownloadString ( "http://www.seleniumhq.org/download" ) ;
3737 var parser = new HtmlParser ( Configuration . Default . WithDefaultLoader ( ) ) ;
3838 var document = parser . Parse ( htmlCode ) ;
39- var version = document . QuerySelectorAll ( "#mainContent > p:nth-child(11 )" )
39+ var version = document . QuerySelectorAll ( "#mainContent > p:nth-child(10 )" )
4040 . Select ( element => element . TextContent )
4141 . FirstOrDefault ( )
4242 ? . Split ( ' ' ) [ 2 ] ;
You can’t perform that action at this time.
0 commit comments