Image

Passing variables from one script to another...

Hello,

I'm working with the Selenium IDE Firefox Extension, and I'm trying to automate some testing tasks...

At one point in time on a script, I want to pass along some unique variables, but they need to be called again at a later point in the script. Example:

<script type="text/javascript" language="Javascript">
<!--
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
var hours = currentTime.getHours()
var min = currentTime.getMinutes()
var sec = currentTime.getSeconds()
document.write("auto_" + day + month + year + hours + min + sec)
//-->
</script>

This works just fine, but I need to call this SAME value again, even if it's run a few second later.

Is there any way to store the variable, and then call it again in a second script?

Patch