chrome headless not support get browser cookie

0 Answers 9 Views
Chrome
Jun
Top achievements
Rank 1
Jun asked on 23 Apr 2024, 03:32 AM

I use ActiveBrowser.Cookies.GetCookies(BaseUri); to get browser cookie, cookie is got, but all expired cookie. The same code if I set chrome not headless, which could get un-expired cookie. Is it not supported yet?

Chrome headless:

Chrome:

Elena
Telerik team
commented on 25 Apr 2024, 02:00 PM

Hi Jun, 

As far as I understand you are running the tests in Chrome in its mode using extension. Please, change the test settings so that the test runs in Chrome without the extension. Then let me know if getting the cookies sets these with expired dates again. 

If so, please, prepare a sample test/code to share which runs against a public accessible page - this will allow me to reproduce the misbehavior and continue working on it.

Regards,
Elena

No answers yet. Maybe you can help?

Tags
Chrome
Asked by
Jun
Top achievements
Rank 1
Share this question
or