!!

Welcome to Selenium Webdriver Forum

As a web user you can read and search through forum content. Once you have registered and signed you can post topics, post replies, set up watch lists, modify forum settings, and use private messaging.

Author Topic: Reg - Firefox profile settings  (Read 968 times)

Rekha SR

  • Web User
Reg - Firefox profile settings
« on: April 01, 2012, 02:28:19 PM »
Hello All,
 
I am using Selenium with Python in Windows 7.
 
I want to change different language in firefox and take screenshot for all.
 
I finished of doing screenshot.
 
So now I am trying to change language by using Firefox profiles.
 
I have posted my coding below.
 ------------------------------------------------------------------------------------------------------------------
 from selenium import selenium
 
sel = selenium('localhost', 4444, '*firefox', 'http://www.yahoo.com/')
 
sel.start()
 sel.open("/")
 sel.wait_for_page_to_load(20000)
 x = sel.capture_entire_page_screenshot("D:\sceeencapture.jpg","");
 sel.stop()
 
*FirefoxProfile profile1 = new FirefoxProfile(); //Im getting error here
 profile1*
 profile1.setPreference("intl.accept_languages","no,en-us,en");
 ------------------------------------------------------------------------------------------------------------------
 
If i try to run the program, im getting error message like
 *
 *
 *There's an error in your program:*
 *invalid syntax*
 
Do anybody help me to fix it?
 --
 -------------------------------------------------------------------------------------------
 S.R.Rekha
 PHP Engineer,

poobathy r

  • Web User
Re: Reg - Firefox profile settings
« Reply #1 on: April 01, 2012, 02:28:35 PM »
In which directory you create the profile
 Use that directory
 
--Poobathy
 

- Show quoted text -

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
1545 Views
Last post February 21, 2012, 08:48:05 PM
by punit jain
1 Replies
617 Views
Last post February 22, 2012, 07:01:29 PM
by Paollo Kuccinni
1 Replies
761 Views
Last post March 27, 2012, 09:05:34 PM
by Simon Stewart
20 Replies
3224 Views
Last post April 01, 2012, 03:00:07 PM
by payal
2 Replies
926 Views
Last post April 01, 2012, 06:59:53 PM
by Mike
0 Replies
632 Views
Last post June 18, 2013, 03:55:43 PM
by tdoan
9 Replies
921 Views
Last post January 27, 2014, 03:32:59 AM
by Murthi