How can I trigger a JavaScript function from Selenium WebDriver when using Firefox? Whenever I am logged into my website, I typically utilize this command in Firebug's Command Editor to launch a file upload application:
infoPanel.applicationManager.changeApp('FileUploader', {action: 'new'})
Could someone guide me on how to achieve the same functionality with Selenium?