Wanting to utilize this particular CSS selector in conjunction with Selenium webdriver
#coordinatonTable .odd:not(:has(.dataTables_empty))
Encountering an "An invalid or illegal string was specified" error. I've attempted the jquery selector test from w3schools. Additionally, this service has flagged it as an "illegal selector". When I shorten the selector, it seems to work fine
#short .odd:not(:has(.dataTables_empty))
#coordinatonTable .odd:not(:has(.short))
#short .odd:not(:has(.short))
It appears that the selector may be too lengthy. However, this doesn't seem plausible. Any suggestions?
The structure of the html section resembles the following:
id="coordinatonTable"
class="odd"
class="dataTables_empty"
class="odd"
class="something"
class="odd"
class="somethingelse"
...
The objective is to retrieve all odd elements that do not contain an empty child element.