From: Florian Gilcher Date: 2013-01-10T22:55:17+09:00 Subject: Re: Can I require an external .js file in Ruby That is something completely different. What you'd like to do is evaluate javascript in webdriver. That is possible. See: http://code.google.com/p/selenium/wiki/RubyBindings On Jan 9, 2013, at 4:24 PM, Nicole Villette wrote: > Thanks for all of your responses. I guess I would need to access the DOM > somehow. I am doing some automation using selenium-webdriver and ruby. > I am getting stuck on the part to upload an audio because it is a flash > object that I can not interact with. So the developer created some js > functions to get me through those clicks. The file with the functions > that I am calling from my script is supposed to be on the audio upload > page for ex. adCreationModule.js. So, I guess I need to get a > reference to the DOM. I'm just not sure how to do that in Ruby. > > -- > Posted via http://www.ruby-forum.com/. >