title: Accessing Javascript global variables from Selenium IDE
body: <p>I'm using the latest Selenium IDE 2.2.0,</p>
  
  <p>and I'm having trouble trying to access a javascript global variable that I set in my script.</p>
  
  <p>This variable acts as a success flag, so I've put</p>
  
  <pre><code>Command: waitForCondition
  Target: test
  Value: 2000
  </code></pre>
  
  <p>But I get </p>
  
  <pre><code>[error] test is not defined
  </code></pre>
  
  <p>I've tried looking at <a href="https://stackoverflow.com/questions/1420413/access-javascript-variables-with-selenium-ide">Access JavaScript variables with Selenium IDE</a>, replacing</p>
  
  <pre><code>Target: this.browserbot.getUserWindow().test
  </code></pre>
  
  <p>but I also get</p>
  
  <pre><code>[error] this.browserbot is undefined
  </code></pre>
  
  <p>I could try a different method of setting a success flag like throwing out an alert, but I'd like to know how to access my javascript variables.</p>
  
  <p>The docs mentioned storedVars, but that was only for variables stored in selenium so I'm at my wits' end.</p>