lundi 28 septembre 2020

Cookie details not present in TestCafe runtime browser

Manually when I am testing an application , I can find cookie details and values. But when I run the same flow , in an automated way using TestCafe, I find no cookie value. For eg: if I enter document.cookie in normal browser, I see cookie details like

LBCSS=000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; UVID=some value; AMCVS_0861467352782C5E0A490D45%40AdobeOrg=some value; s_cc=some value; AMCV_0861467352782C5E0A490D45%40AdobeOrg=some value; allowcookies={"allowCookies":"complete","version":4}; s_sq=some value; _gcl_au=some value; _fbp=some value; _ga=some value; _gid=some value; _gat_gtag_UA_66293666_1=some value; _svtri=some value; CONSENTMGR=consent:true%7Cts:1601280807052; _svlet=some value; utag_main=some value

if I try document.cookie on testcafe browser, I only see

LBCSS=000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

The cookie is not set with any value which is the reason why my test is failing. Could someone please help and suggest me a way to get the cookie with proper values

Aucun commentaire:

Enregistrer un commentaire