Error while trying to generate date

Hi Team

I am trying to generate current date in macro step.

However am getting error as " [error]

timeout reached when looking for element ‘var d= new Date(); var m=((d.getMonth()+1)<10)?‘0’+(d.getMonth()+1):(d.getMonth()+1); d.getFullYear()+"-"+m+"-"+d.getDate();’"

Please refer attachment for more details about step and error.

Easy fix: the command should be storeEval not storeValue :smiley:


I have used StoredEval but still echo command is not displaying the value of variable in log and rather it displayed the name of variable in it. Please refer screenshot below.

try echo | ${command}

1 Like

Its resolved now. Thanks a lot.