- winston007
- Posts : 1
Join date : 2014-09-24
How to 'allow' silverlight plugin?
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?)
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.
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?)
- Code:
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.
- thewayoutisthrough
- Posts : 1
Join date : 2014-10-17
Re: How to 'allow' silverlight plugin?
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.
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.
Permissions in this forum:
You cannot reply to topics in this forum
|
|