The cookiestore object retrieves a list of cookies from the containing browser (which implies that this class is only available for code running inside a browser instance, not from roNodeJs).
Object Creation
let CookieStoreClass = require("@brightsign/cookiestore"); let cookieStore = new CookieStoreClass();
Cookie
To get cookies from the containing browser:
Array<Cookie> getCookies()
[string] domain:
[string] path:
[string] name:
The name of the cookie[string] value:
The value of the cookie
Example
To list the cookies saved on a browser instance on a console:
let CookieStoreClass = require("@brightsign/cookiestore"); let cookieStore = new CookieStoreClass(); let cookies = cookieStore.getCookies(); cookies.forEach((cookie) => {console.log("Cookie domain: " + cookie.domain + " Cookie path:" + cookie.path + " Cookie name:" + cookie.name + " Cookie value:" + cookie.value)});