Skip to content

Commit 0e05599

Browse files
committed
Fix locators for firefox and opera.
1 parent 5f37125 commit 0e05599

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

WebDriverManager/DriverConfigs/Impl/FirefoxConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public virtual string GetLatestVersion()
3434
var htmlCode = client.DownloadString("https://github.com/mozilla/geckodriver/releases");
3535
var parser = new HtmlParser(Configuration.Default.WithDefaultLoader());
3636
var document = parser.Parse(htmlCode);
37-
var version = document.QuerySelectorAll("[class='release-title'] a")
37+
var version = document.QuerySelectorAll("[class~='release-title'] a")
3838
.Select(element => element.TextContent)
3939
.FirstOrDefault()
4040
?.Remove(0, 1);

WebDriverManager/DriverConfigs/Impl/OperaConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public virtual string GetLatestVersion()
3434
var htmlCode = client.DownloadString("https://github.com/operasoftware/operachromiumdriver/releases");
3535
var parser = new HtmlParser(Configuration.Default.WithDefaultLoader());
3636
var document = parser.Parse(htmlCode);
37-
var version = document.QuerySelectorAll("[class='release-title'] a")
37+
var version = document.QuerySelectorAll("[class~='release-title'] a")
3838
.Select(element => element.TextContent)
3939
.FirstOrDefault();
4040
return version;

0 commit comments

Comments
 (0)