String script = ‘return window.localStorage.getItem(“access_token”);’ @katalon51
Storage: getItem() method - Web APIs | MDN (mozilla.org)
With the above information on getItem()
, maybe you have to setItem()
the key/value pair first before you “get” them.
1 Like
Also, have you tried window with a capital W?
String script = 'return Window.localStorage.getItem("access_token");'
1 Like