String script = ‘return window.localStorage.getItem(“access_token”);’ @katalon51
With the above information on
getItem(), maybe you have to
setItem() the key/value pair first before you “get” them.
Also, have you tried window with a capital W?
String script = 'return Window.localStorage.getItem("access_token");'