title: Access JavaScript variables with Selenium IDE
body: <p>I'm wondering if it's possible to access page JavaScript variables with Selenium. I have an application that's using a variable attached to the window object. It has a global scope and I can access it either with <code>window._myvar</code>, <code>window['_myvar']</code>, <code>_myvar</code>, <code>this['_myvar']</code>, <code>this._myvar</code> depending on the context.</p>
  
  <p>So I tried to get Selenium to echo it. As far as I understand, in Selenium IDE the context in which everything runs is <code>selenium</code>. I tried doing <code>this.browserbot.getCurrentWindow()._myvar</code>, <code>this.browserbot.getCurrentWindow()[_myvar]</code> to no avail. I get bumped with the following error <code>Unexpected Exception: message -&gt; eval(match[1]) is undefined</code>.</p>
  
  <p>Anyone managed to access their page's JavaScript?</p>