My struggle is with finding an element by id using Cypress. The Cypress selector playground provided the following code:
get("#\33 -2")
Unfortunately, when I execute this code in Cypress, it results in an error:
Syntax error, unrecognized expression: # -2
I even attempted to manually adjust the id like so:
get("#33-2")
Still, the issue persists. Oddly enough, everything works fine with classes, but not with ids. Below is an example of the element I am attempting to select:
<div id="1-20">Hello world</div>