Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
winston007
Posts : 1
Join date : 2014-09-24

How to 'allow' silverlight plugin? Empty 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).

How to 'allow' silverlight plugin? Silver10

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.
avatar
thewayoutisthrough
Posts : 1
Join date : 2014-10-17

How to 'allow' silverlight plugin? Empty 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.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum