I am trying to parse a multi-value cookie using the Selenium IDE. I have this as my Tracking Cookie Value: G=1&GS=2&UXD=MY8675309=&CC=234&SC=3535&CIC=2724624
So far I have simply captured the full cookie into a Selenium variable with the standard StoreCookieByName command:
storeCookieByName Tracking Tracking
However I want to get a particular sub element of the cookie for my test, such as the UXD value of MY8675309.
I have tried using Javascript to parse and all but have had no luck with it and the StoreCookieByName value.
Any help would be appreciated.
Here's a generalized solution. This is a bit clumsy, but I can't think of a more concise method:
If the Tracking Cookie Value is a string, then: