I have a cookie with several objects, namely path, secure status, and httponly status, that I need to set alongside the actual value of the cookie. While the Cypress guide does specifically state that such objects can be passed in, there is no example of a command with passed in objects for a novice like me to follow.
Can someone provide an example?
Already tried...
cy.setcookie('cookieName', 'value', 'path=/', 'Httponly=true', 'Secure=true')
cy.setcookie('cookieName', 'value', path='/', Httponly=true, Secure=true)
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)