Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Unable to set a specific preference in FireFox

View previous topic View next topic Go down

Unable to set a specific preference in FireFox

Post by Silent on Thu Jul 02, 2015 4:28 am

Hello!

Here is my Python code:
Code:
from selenium import webdriver
import time

firefox_profile = webdriver.FirefoxProfile()
firefox_profile.set_preference('permissions.default.image', 2)
firefox_profile.set_preference('permissions.default.stylesheet', 2)
firefox_profile.set_preference('dom.ipc.plugins.enabled.libflashplayer.so', 'false')

driver = webdriver.Firefox(firefox_profile=firefox_profile)
driver.get('url')

#driver.close()

My goal is to stop images, style-sheets and flash from loading to speed up the process as much as possible.
No matter what I do, "permissions.default.image" stays 1. I am still able to manually set it in the browser window that opens, and then it works.
"permissions.default.stylesheet" is set to 2 and works as expected.

What is going on here?? scratch

Silent

Posts : 2
Join date : 2015-07-02

Back to top Go down

Re: Unable to set a specific preference in FireFox

Post by seluserqwb1 on Mon Jul 06, 2015 8:07 pm

Please post your question in official webdriver forum  - 
www.seleniumtests.com/p/selenium-2-forum.html

seluserqwb1
Active particpant
Active particpant

Posts : 20
Join date : 2015-06-29

Back to top Go down

Re: Unable to set a specific preference in FireFox

Post by AgoBalan on Tue Jul 07, 2015 8:10 pm

Not sure,  may be check FF version and standalone version.... try with latest version of Bothj application

AgoBalan
Amateur
Amateur

Posts : 36
Join date : 2015-02-23

Back to top Go down

Re: Unable to set a specific preference in FireFox

Post by seluserqwb1 on Wed Jul 08, 2015 3:44 pm

Please post your question in official webdriver forum  - 
www.seleniumtests.com/p/selenium-2-forum.html

seluserqwb1
Active particpant
Active particpant

Posts : 20
Join date : 2015-06-29

Back to top Go down

Re: Unable to set a specific preference in FireFox

Post by Sponsored content Today at 3:20 am


Sponsored content


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