How do you use Selenium to execute javascript within a frame?
Selenium stores the Window Object within its own object so it can manipulate it better. Once you move to the frame it should be like this.
selenium.getEval("var window = this.browserbot.getUserWindow();window.jQuery('div[id=main]')");
And that should work for you
I have a tutorial on my site for this type of situation here
You can use :
JavascriptExecutor js = (JavascriptExecutor) driver;js.executeScript("javascript:sendEvent('play');");