css=table#playlistTable tr:nth(0) span[class='playlistNumDisplay smallFont']
I am getting an error in this css above.
I want to basically go to the first ‘tr’ under ‘PlaulistTable and then under the first ‘tr’ I want to select span[class=’playlistNumDisplay smallFont’]
what wrong am I doing here?
thanks for the help
You probably meant
:nth-child(1)or:nth-of-type(1)rather than simply:nth(0)which is invalid CSS.If you’re specifically looking for the first match, you can also use
:first-childor:first-of-typerather than thenth-()variants.Quirksmode has a good list of the available selectors here http://www.quirksmode.org/css/contents.html (along with a browser compatibility chart, though I don’t think that will be relevant to you in the context of a Selenium query)
Hope that helps.