File tree 4 files changed +7
-7
lines changed
WebDriverManager/DriverConfigs/Impl
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public void VersionTest()
15
15
Assert . Matches ( regex , version ) ;
16
16
}
17
17
18
- [ Fact ( Skip = "The remote server returned an error: (404) Not Found" ) ]
18
+ [ Fact ]
19
19
public void DriverDownloadTest ( )
20
20
{
21
21
new DriverManager ( ) . SetUpDriver ( new InternetExplorerConfig ( ) ) ;
Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ public virtual string GetLatestVersion()
42
42
ServicePointManager . SecurityProtocol = SecurityProtocolType . Tls12 ;
43
43
using ( var client = new WebClient ( ) )
44
44
{
45
- var htmlCode = client . DownloadString ( "https://github.com/mozilla/geckodriver/releases" ) ;
45
+ var htmlCode = client . DownloadString ( "https://github.com/mozilla/geckodriver/releases/latest " ) ;
46
46
var parser = new HtmlParser ( ) ;
47
47
var document = parser . ParseDocument ( htmlCode ) ;
48
- var version = document . QuerySelectorAll ( "[class='Link--primary'] " )
48
+ var version = document . QuerySelectorAll ( "h1.d-inline " )
49
49
. Select ( element => element . TextContent )
50
50
. FirstOrDefault ( )
51
51
? . Trim ( ' ' , '\r ' , '\n ' ) ;
Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ public virtual string GetLatestVersion()
36
36
ServicePointManager . SecurityProtocol = SecurityProtocolType . Tls12 ;
37
37
using ( var client = new WebClient ( ) )
38
38
{
39
- var htmlCode = client . DownloadString ( "https://github.com/SeleniumHQ/selenium/releases" ) ;
39
+ var htmlCode = client . DownloadString ( "https://github.com/SeleniumHQ/selenium/releases/latest " ) ;
40
40
var parser = new HtmlParser ( ) ;
41
41
var document = parser . ParseDocument ( htmlCode ) ;
42
- var version = document . QuerySelectorAll ( "[class='Link--primary'] " )
42
+ var version = document . QuerySelectorAll ( "h1.d-inline " )
43
43
. Select ( element => element . TextContent )
44
44
. FirstOrDefault ( )
45
45
? . Replace ( "Selenium" , "" )
Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ public virtual string GetLatestVersion()
34
34
ServicePointManager . SecurityProtocol = SecurityProtocolType . Tls12 ;
35
35
using ( var client = new WebClient ( ) )
36
36
{
37
- var htmlCode = client . DownloadString ( "https://github.com/operasoftware/operachromiumdriver/releases" ) ;
37
+ var htmlCode = client . DownloadString ( "https://github.com/operasoftware/operachromiumdriver/releases/latest " ) ;
38
38
var parser = new HtmlParser ( ) ;
39
39
var document = parser . ParseDocument ( htmlCode ) ;
40
- var version = document . QuerySelectorAll ( "[class='Link--primary'] " )
40
+ var version = document . QuerySelectorAll ( "h1.d-inline " )
41
41
. Select ( element => element . TextContent )
42
42
. FirstOrDefault ( )
43
43
? . Trim ( ' ' , '\r ' , '\n ' ) ;
You can’t perform that action at this time.
0 commit comments