Display results as :

Rechercher Advanced Search

Latest topics
» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c

» Selenium Webdriver
Sat Feb 04, 2017 6:47 pm by


How to 'allow' silverlight plugin?

View previous topic View next topic Go down

How to 'allow' silverlight plugin?

Post by winston007 on Wed Sep 24, 2014 6:07 pm

I get this toolbar popup appearing at the start of my tests which requires human interaction to click the 'allow' / 'remember' button (although it never remembers it when using webdriver).

But, how do I avoid such a message appearing each time?
I am currently using Firefox.

My thoughts are:
I should create a preference somehow to enable/allow silverlight to run (??but what is the command?)
profile  = webdriver.FirefoxProfile()
profile.set_preference("  ---SOMETHING HERE MAYBE?? --- ")
driver = webdriver.Firefox(firefox_profile=profile)

I have also been looking in the about:config in Firefox to look for clues (maybe one is set to False when it should be true) but nothing with the name of 'silverlight' shows up there.


Posts : 1
Join date : 2014-09-24

Back to top Go down

Re: How to 'allow' silverlight plugin?

Post by thewayoutisthrough on Fri Oct 17, 2014 1:42 am

Hi, I also struggled with the Silverlight plugin in Firefox.

I ended up creating a new Firefox profile (naming it silverlightProfile). I'm unable to post a link for the instructions I followed on how to create a Firefox profile, but I followed the instructions on the 1st google search result for "toolsqa custom firefox profile".

I then launched Firefox with this new profile and set the Silverlight plugin to "Always Activate."

In my test, I called the silverlightProfile:

ProfilesIni profile = new ProfilesIni();
FirefoxProfile myprofile = profile.getProfile("silverlightProfile");
driver = new FirefoxDriver(myprofile);

When the test ran, I no longer got the silverlight popup asking if I wanted to allow.

I hope that helps.


Posts : 1
Join date : 2014-10-17

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum