I have an element with the following styles
Now I want to se
I think you only have to remove the first space:
ul[style="background-color: transparent;"]
Now it is searching all ul
-tags which have this style; with the space between it tries to select all dom elements in(!) a ul
-tag which have this sytle.
Here an example with the querySelector for javascript, it should work with selenium too.