title: Can Selenium web driver have access to javascript global variables?
body: <p>Hi: I'm writing tests for django with javascript and I was wondering if the Selenium webdriver can access a javascript global variable. <code>mypage</code> has a script that has a global variable I'd like to access. Is it possible? Thanks!</p>
  
  <pre><code>from django.test import LiveServerTestCase
  from selenium.webdriver.firefox.webdriver import WebDriver
  
  class TestEditorSelenium(LiveServerTestCase):
      def setUp(self):
          self.driver = WebDriver()
  
      def test_mytest(self):
          self.driver.get('%s%s' % (self.live_server_url, '/mypage/'))
  </code></pre>