Must be a valid CSS selector, when it already is

Describe the problem.
trying to grab information like College ID or Current Licence information results in a CSS selector that looks like this "#\37 441d29f13 .card-body div" or if I copy a selector from elements inspector like this "#\37 441d29f13 > section > div > div > div". And web scrapper won't accept them saying "Must be a valid CSS selector". Seems like the problem is in this 441d29f13, but the selectors work perfectly fine on this specific on other similar pages, so I am not sure what the problem is. And of course, if I remove this specification, the selector breaks and grabs a bunch of wrong elements. What do I do?

Url: RCIC Profile - Licensee Details

Seems like I was able to select a parent element a go from there creating this abomination div#ctl01_TemplateBody_WebPartManager1_gwpciPersonDetails_ciPersonDetails__Body>div>section>div>div>div. I will see if it works correctly

You could just do a partial id match, and use contains:
e.g. to get "Type":

div[id*='ciPersonDetails'] div.card-body p:contains('Type')

1 Like