Friday, March 1, 2013

Selenium IDE - Find & Replace text in url

Selenium IDE - Find & Replace text in url


Steps:

1. First store current url in to any variable.


<tr>
<td>storeLocation</td>
<td>url1</td>
<td></td>
</tr>


2. Next using replace function, replace the word - pdfreader with epub reader in the url & again store in different variable.


<tr>
<td>storeEval</td>
<td>&quot;${url1}&quot;.replace(&quot;pdfreader&quot;,&quot;epubreader&quot;)</td>
<td>url2</td>
</tr>

No comments:

Post a Comment