Skip to content

Commit d829ede

Browse files
authored
Simplify release title with version selector
1 parent 93ec334 commit d829ede

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebDriverManager/DriverConfigs/Impl/OperaConfig.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ public virtual string GetLatestVersion()
3535
var htmlCode = client.DownloadString("https://github.com/operasoftware/operachromiumdriver/releases");
3636
var parser = new HtmlParser(Configuration.Default.WithDefaultLoader());
3737
var document = parser.Parse(htmlCode);
38-
var version = document.QuerySelectorAll("[class~='release-title'] a")
38+
var version = document.QuerySelectorAll(".release-title > a")
3939
.Select(element => element.TextContent)
4040
.FirstOrDefault();
4141
return version;
4242
}
4343
}
4444
}
45-
}
45+
}

0 commit comments

Comments
 (0)