Hi... I have a question relating to the Spock framework and Groovy
I'm relatively new to html and Spock.
Here is some of the html I am looking at:
I'd like to write a selector to pick out the line with the yellow background color which I think has: rgba(255, 255, 0, 0.3)
The problem is this yellow line can appear anywhere in the set of background-color lines.
So far what I have is:
which works ok if the yellow line is on the first line of the set.
Any ideas on how I can rewrite the selector to pick out the yellow line no matter where
it is in the set of html lines?
Those look like jQuery statements. If so, then the substring attribute selector can be used to find a substring anywhere in an attribute. For example:
which will match any element whose style attribute contains the substring fred