HtmlAgilityPack.CssSelectors.NetCore
HtmlAgilityPack.CssSelectors.NetCore copied to clipboard
multiple '>' not yielding the desired element
I have selector 'div.traveler-details>div>span' where it should yield single element( as tested on dev tools(Elements tab)
Finding the wrong element with this library though.
I suspect this could be specifically because of not having a space preceding the '>' character which is a bug that was already fixed but a new version of the package has not been published to include it. To corroborate try the following selector string instead and check if it yields correct results:
div.traveler-details > div > span instead of div.traveler-details>div>span
Here is the fix that was checked in for that: https://github.com/trenoncourt/HtmlAgilityPack.CssSelectors.NetCore/commit/7537c41ae2e0460c4e90aa51cc44957cd4f38cc4