Possible Duplicate:
Load an external js file containing useful test functions in selenium
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.
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.
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.
Thanks,