Skip to content

Commit

Permalink
Stabilize firefox driver version fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
rosolko committed Aug 2, 2020
1 parent fac18c0 commit fbb65ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WebDriverManager/DriverConfigs/Impl/FirefoxConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public virtual string GetLatestVersion()
var document = parser.ParseDocument(htmlCode);
var version = document.QuerySelectorAll(".release-header .f1 a")
.Select(element => element.TextContent)
.FirstOrDefault();
.FirstOrDefault()
?.Replace("v", "");
return version;
}
}
Expand Down

0 comments on commit fbb65ef

Please sign in to comment.