Xpath to css selector, as would be correct in my case?

//div[.='As you new Mail?']/parent::*/parent::*

how it will look in the css selector?
March 19th 20 at 08:38
2 answers
March 19th 20 at 08:40
To turn this into a CSS selector can not. CSS does not allow to parents of the element and especially to compare the contents of the element with the line.
Only partly true.
You can compare, but only with an empty string.
The new selectors is the parents. Though they missed none of the browsers
https://www.w3.org/TR/selectors-4/#relational - sophie.Wi commented on March 19th 20 at 08:43
March 19th 20 at 08:42
You like to ublock...

Here made a similar request. For another block of TC is unclear where to find this

e.mail.EN##:xpath(//div[normalize-space(.)='Choose theme']/parent::*/parent::*)

And it works.
If it does not work, you need a link to the one that you want to hide

Find more questions by tags XPath