cy.get('.pass-input-placeholder > .input-wrapper > .error-msg > .msg-body > span')
.should('contain', 'Invalid password');
Why are the classes separated with ">"? Does it apply only for classes?
cy.get('.pass-input-placeholder > .input-wrapper > .error-msg > .msg-body > span')
.should('contain', 'Invalid password');
Why are the classes separated with ">"? Does it apply only for classes?
Copyright © 2021 Jogjafile Inc.
It means select "the immediate child". It applies for classes, tags, ids, attributes, anything.
So
.pass-input-placeholder > .input-wrapper
would find thisbut not this
But without
>
the second HTML will be found as well.