Difficult to tell what's wrong without access to y...
# best-practices
t
Difficult to tell what's wrong without access to your front-end. If you just navigated to that page in your screenshot then did
cy.contains('Book now')
it would find the first button on the left side as it's first in the div structure. If you want to select the middle one, find the div structure for each 'card' and first use cy.get() to return the parent div somewhere in the structure (I would imagine it would select the whole card) then you can use .within() and cy.contains('Book now') to find the button with Book now underneath the parent div (searches child elements) which narrows down where it's looking. If your website has public access, send me a DM and I could help you figure it out easier.