Selenium IDE Error: Threw an exception: missing ; before statement.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Selenium IDE Error: Threw an exception: missing ; before statement.

ANJALI VASWANI
Hi,

I'm suing storeEval command using the javascript below:
Command: storeEval

Target : javascript{var d= new Date();var a= d.getDate();var b=
d.getMonth()+1;var c=d.getFullYear();var x=d.getHours();var y=
d.getMinutes();var z= d.getSeconds();var f=new String();var
s=f.concat(b+'/'+a+'/'+c);var f1=new String();var s1=
f1.concat(x+':'+y+':'+z);var time; if(x<12) {  time='Am'; } else {
time='Pm'; }var s2 = f1.concat(s+'\t'+s1+'\t'+time); s2}

Value: abc

I'm getting the following error: [error] Threw an exception: missing ;
before statement.

In this I'm storing the date in a variable abc so that i can so it further
to match it with a label.

Kindly help.

Regards,

Anjali Vaswani