How to change this XPath to CSS selector?
//div[following-sibling::div[contains(@class, 'active-member')]]
Does any XPath can be converted to CSS selector?
How to change this XPath to CSS selector?
//div[following-sibling::div[contains(@class, 'active-member')]]
Does any XPath can be converted to CSS selector?
Not every XPath can be converted to CSS selector.
CSS selectors do not support matching elements according to their texts and not supporting traversing up to parent elements
As about converting this specific XPath to CSS selector I think it will be
div+div.active-member
However I'm not fully sure about this