selenium-ide
selenium-ide copied to clipboard
different behaviour of store command
Hi,
With Firefox Selenium IDE Version 3.0.3.0.
Here's my Store command:
<tr>
<td>store<td>
<td>javascript{var d = new Date();d.setDate(1999);d.setMonth(d.getMonth()+1);var j = "00" + d.getDate();j = j.substring(j.length-2,j.length);var m = "00"+(d.getMonth()+1);m = m.substring(m.length-2,m.length);j+"/"+m+"/"+d.getFullYear();}</td>
<td>date2</td>
</tr>
Then I use this variable in type command:
<tr>
<td>type<td>
<td>//input[@id='...']</td>
<td>${date2}</td>
</tr>
This command is typing the eval of date2 in the input => perfect!
Then I use this same variable in assert text command:
<tr>
<td>type<td>
<td>//input[@id='...']</td>
<td>${date2}</td>
</tr>
This command is trying to check the text "javascript{...." without eval. Could you correct this behaviour?
Thank by advance, AyaSF
It requires standardizing JavaScript evaluation, which is a problem I've been thinking a lot recently.
I'll make sure to keep this thread updated.