| javascript_exercise | ||
| open | /seleniumtraining/Selenium_JavaScript.htm | |
| type | number1 | 1 |
| type | number2 | 1 |
| click | add | |
| storeValue | total | addtotal |
| verifyEval | javascript{1+1} | ${addtotal} |
| type | number1 | 10 |
| type | number2 | 5 |
| click | minus | |
| storeValue | total | minustotal |
| verifyEval | javascript{10-5} | ${minustotal} |
| type | number1 | 4 |
| type | number2 | 3 |
| click | multiply | |
| storeValue | total | multiplytotal |
| verifyEval | javascript{4*3} | ${multiplytotal} |
| type | number1 | 40 |
| type | number2 | 10 |
| click | divide | |
| storeValue | total | dividetotal |
| verifyEval | javascript{40/10} | ${dividetotal} |