Firefox Selenium webdriverでFlashを自動的に有効にする必要があります。FirefoxProfileでFireFox Selenium webdriverでAdobe Flashを有効にする方法
私が試してみました:
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);
をしかし、これはまだ "許可" をクリックして、私を必要とします。
This is shown all the time, even with the code above
エラーはありません。 ちょうど働かなかった。 "Allow"ボタンを手動でクリックしなければならなかったので。 –
私がここに間違っていれば私を訂正してください。しかし、 'driver'オブジェクトに優先権を渡したのと同じように私には見えます。あなたはそれをどこかに伝える必要もあります。 – Brian
私が行くサイト: driver.get(リンク); Flashプラグインが許可されている必要があります。そして私はそれを手動で押す必要があります。 あまりにも自動化する方法が必要です。 –