How to handle multiple cookies


I’m trying to test against our deployed servers and they have more cookies than the local environment which is breaking my scenario.

I need to extract the value from one of the cookies so I can use it else where in the test. Is there a way to access individual cookies?

I was using headerRegex(“SET-COOKIE” regex).ofType[(String)].exists.saveAs(“cookieInfo”)) However this is now failing with multiple cookies.



Im an idiot - my regex was incorrect to handle a list of cookies, all good now.