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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -