javascript - How to store local storage data using Protractor? -
i have seen many examples fetching stored data didn't example fetching stored values.
you can access localstorage through browser.executescript() way:
get value
var value = browser.executescript("return window.localstorage.getitem('mykey');");
set value
browser.executescript("window.localstorage.setitem('mykey', 'myvalue');");
Comments
Post a Comment