Documentation and Books

Recent site activity

SeleniumIDE‎ > ‎

When using assertTextPresent, how to check for dynamic content?

It is allowed to use variables in the check:

  <tr>
<td>storeExpression</td>
<td>javascript{var date = new Date();date.getDate() +
'-' + (date.getMonth() + 1) + '-' + date.getFullYear();}
</td>
<td>currentDate</td>
</tr>

...

<tr>
<td>assertTextPresent</td>
<td>Date of today: ${currentDate}</td>
<td></td>
</tr>