I want to make pause command dynamic like define it first and multiple or divide it (in shortest form) in test as shown below:

enter image description here

2 Answers 2


Selenium docs mention that Javascript can be used in Selenium IDE in two ways. With script-parameters (storeEval etc) and with non-script parameters (direct javascript). The easier solution to your problem is using non-script parameters in your selenium-ide commands.

Simply replace ${delay}/2 with javascript{storedVars['delay']/2} and so on.. as shown in attached screenshot. You can also use echo command to verify if this solution is working as expected.

enter image description here

For more details, I recommend reading official selenium docs:

Selenium IDE official documentation on using javascript


You can make use of storeEval command in Selenium IDE. Using it you can add, divide, multiply any variable with desired value and then use it.

Command: storeEval Target: storedVars['delay']*2 Value: doubleDelay

<table cellpadding="1" cellspacing="1" border="1">
<tr><td rowspan="1" colspan="3">New Test</td></tr>


reference for storeEval

  • Please dont post links but post an example which fits the question instead.
    – bish
    Dec 18, 2015 at 5:29
  • I have edited my answer. Details added now.
    – AMfromNBS
    Dec 18, 2015 at 5:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.