- Dalmi
- Posts : 1
Join date : 2010-12-02
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.
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
I try to start Selenium RC with a modified profile for Firefox, but Selenium doesn't take this profile.
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
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.
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.
Permissions in this forum:
You cannot reply to topics in this forum