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
Dalmi
Posts : 1
Join date : 2010-12-02

Custom Firefox profile doesn't work Empty Custom Firefox profile doesn't work

Thu Dec 02, 2010 3:49 pm
Hi there,

I try to start Selenium RC with a modified profile for Firefox, but Selenium doesn't take this profile. Crying or Very sad
I searched the web and tried several things, but nothing helped.

In the ant-File, I placed the following 2 lines:
<arg value="-firefoxProfileTemplate"/>
<arg value="Selenium"/>

The profile is in the directory "Selenium". I also tried to take the absolute path, but this didn't work either. And I tried to put it as a parameter in the bat-File (ant -DseleniumArgs=”-firefoxProfileTemplate Selenium” launch-remote-control) but with the same result.

Everytime I start a testcase, Selenium starts with it's own Firefox-profile and not with the profile I specified.

Does anyone have an idea what I'm doing wrong?

Thanks and greets,

Dalmi

Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

Custom Firefox profile doesn't work Empty Re: Custom Firefox profile doesn't work

Sat Dec 11, 2010 1:32 pm
Hi ,

Follow the steps to start selenium with firefox profile. First do the with basic commands on selenium server and then use ant to replicate those steps

1. download the following selenium RC working with Firefox latest browser version till 3.7. the URL are as follows

"http://www.mediafire.com/?rjkjx4w2a237x92"

2. After that create a new profile in firefox if not created. check some tutorials how to create it , if not know how to do it.

3. now get the absolute path of your profile. type in Run prompt
%AppData%/Mozilla
Now reach to your newly profile like fierox->profiles->new profile.

4. copy the absoulte path and start the command prompt.

5. reach at selenium server folder which you downloaded from above link.

6. use the following commands:
java -jar selenium-server.jar -interactive -firefoxProfileTemplate "copy your absolute path here"

7. now you server start with firefox profile. Now open your site to ensure same profile started. type following commands after server started.

cmd=getNewBroserSession&1=*firefox&2=http://www.google.co.in
cmd=open&1=http://www.google.co.in

8 If your browser start with google, all worked like charm. Now do the same step for your ant process.

Hope this will help. Best of luck.

Very Happy
Back to top
Permissions in this forum:
You cannot reply to topics in this forum