title: Selenium RC in Javascript adding an external js file
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7675492/load-an-external-js-file-containing-useful-test-functions-in-selenium">Load an external js file containing useful test functions in selenium</a>  </p>
  </blockquote>
  
  
  
  <p>I have to do performance testing for a system using Selenium RC and writing the tests in Javascript so the rest of my team can understand them. I need to be able Sencha Ext library to access certain controls on the page so I need to be able to define the external js library. In my tests for selenium I can't define the library using the normal means of writing a script tag to the page; document is undefined. Also trying to use other selenium commands like addScript dont seem to be much help.</p>
  
  <p>Is there a better way to include an external js library with Selenium? I do have the open source Sencha Ext library locally so I can put it wherever.</p>
  
  <p>Can I just load the library as a reference from soda? I did see somebody modifed the Selenium standalone RC jar file but that is way out there for me to understand. I'm kind of lost here where to go from here.</p>
  
  <p>Thanks,</p>