Hello,
I’m trying to import some Selenium IDE scripts into Katalon Recorder. Everything seems to work okay except the code that worked in Selenium IDE to pass a variable from Javascript to Selenium isn’t working.
Here’s a super simple version to show what isn’t working:
runScript | var test = 5;
storeEval | window.test | testvar
echo | ${testvar}
Result: [info] echo: null
Any ideas? Is there a different way to do this in Katalon Recorder? Or am I missing something obvious?
Thanks!
2 Likes
Thank you for the feedback. We will release version 3.4.11 this week to address this issue.
2 Likes
The version 3.4.11 has been released.
Example:
runScript | window.test = 5 // make sure you explicitly set it as a window property
storeEval runScript | return window.test | testvar // the return keyword is important
echo | ${testvar}
Please let me know if you have any issue with it. We always appreciate your feedback.
1 Like
Sorry I made a mistake. Please replace “storeEval” with “runScript” :).
2 Likes
@2620-Alex Ah ha! Works great now - many thanks!
2 Likes