You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I temporarily solved this with custom has pseudo class:
class MyCustomSelectors
def custom_has node_set, selector
node_set.find_all { |node| node.css(selector).present? }
end
end
#usage:
doc.css('li:custom_has(span.string:not(:empty))>h1>a',MyCustomSelectors.new)
The text was updated successfully, but these errors were encountered:
Please note that issue #350 has no failing tests. Providing failing tests on that ticket (hints are provided) would be helpful, if this is important to you.
:has selector doesn't work (but I found tests in code for this?):
Example queries:
I temporarily solved this with custom has pseudo class:
The text was updated successfully, but these errors were encountered: