Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Addition of two variables in selenium IDE

I have store one value in one variable and second in other, now i want to make addition of those two number.I am not able to do that, I have tried below code but its not working

<tr>
    <td>store</td>
    <td>6</td>
    <td>w</td>
</tr>
<tr>
    <td>store</td>
    <td>6</td>
    <td>x</td>
</tr>
<tr>
    <td>store</td>
    <td>javascript{storedVars['w'] + storedVars['x']}</td>
    <td>z</td>
</tr>
<tr>
    <td>echo</td>
    <td>${z}</td>
    <td></td>
</tr>
like image 881
user1192378 Avatar asked Feb 21 '23 06:02

user1192378


1 Answers

You have to use storeEval command

<tr>
    <td>storeEval</td>
    <td>${w}+${x}</td>
    <td>z</td>
</tr>
like image 67
p0deje Avatar answered Mar 04 '23 05:03

p0deje