Hello, I try to write script with phantomjs, that login in site and then do some actions with account of registered user and when I try to do actions - it is crashed because
phantomjs dont send cookies in request headers to server. I tried to use --cookies-path=/some/path params and to add cookies to header by hand through page.
onResourceRequested or page.customHeaders but all are failed.
Usual normal browser persist session cookies and use them in requests of page or resources. And what must I do so that phantomjs to send cookies that can change in process of script work?