Cypress interview question Flashcards

1
Q

Why cypress has a problem reading selector with the backslash \ ? example .lg:mx-auto >

and how can you fix it ?

A

likely due to the fact that Cypress uses jQuery under the hood for DOM manipulation and querying. The backslash () character is used as an escape character in jQuery selectors to escape special characters.

by adding a backslash to the selector or removing it from the selector.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Is the .contain comand case-sensitive ?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly