Display results as :

Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara


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