I need an automated way to enable Flash in the Firefox Selenium webdriver without user interaction.
I have tried:
FirefoxProfile profile = new FirefoxProfile();
//As 0 is to disable, I used 1. I don"t know what to use.
profile.setPreference("plugin.state.flash", 1);
WebDriver driver = new FirefoxDriver(profile);
But this still requires me to click "Allow".