1

I want to use selenium to disable flash in IE, firefox, and chrome.

is there a way to do it cross browser, and if there isn't, is there a command you know for one of them or all?

(I am using C#)

Cœur
  • 37,241
  • 25
  • 195
  • 267
michali
  • 3,230
  • 4
  • 18
  • 20

1 Answers1

2

For Firefox, you can try this (in Java):

FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("plugin.state.flash", 0);
FirefoxDriver driver = new FirefoxDriver(profile);

Refer to this post.

Community
  • 1
  • 1
userpal
  • 1,483
  • 2
  • 22
  • 38