How to set the session variables in katalon

I want to set the custom Device ID for the browser which I can get from the Local Storage in the Network… how can I achieve this in Katalon… I tried the below pice of code but i’m getting No Signature of method exception… Can you help me out on this

WebUI.executeJavaScript(“localStorage.setItem(‘deviceID’)”, findTestData(‘LoginTestData’).getValue(‘DeviceID’, 1))

2 Likes