Firefox profile - Profile Directory does not exist.

625 views
Skip to first unread message

DazManCat

unread,
Sep 7, 2010, 10:18:27 AM9/7/10
to Selenium Users
I've setup a new firefox profile for use with Selenium (accepted
certificate warnings for local QA site).

But, I keep getting told the profile directory does not exist.

This is the line from my batch file

java -jar selenium-server.jar -firefoxProfileTemplate ~/"C:
\Documents and Settings\dadams\Application Data\Mozilla\Firefox
\Profiles\k39jzisz.SeleniumUser"

but the message I get is:

Firefox profile template doesn't exist: C:\Installs\selenium-
remote-control-1.0.
3\selenium-server-1.0.3\~\C:\Documents and Settings\dadams
\Application Data\Mozi
lla\Firefox\Profiles\k39jzisz.SeleniumUser

The Profile I created is : C:\Documents and Settings\dadams
\Application Data\Mozi
lla\Firefox\Profiles\k39jzisz.SeleniumUser.

Can anyone tell me what I have not done correctly?


Niraj Kumar

unread,
Sep 7, 2010, 11:16:21 AM9/7/10
to seleniu...@googlegroups.com
give this a try what written in this post.
http://automationtricks.blogspot.com/2010/05/how-to-run-test-cases-in-specified.html




--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.




--
Thanks & Regard,
Niraj Kumar

foobar3000

unread,
Sep 7, 2010, 12:20:39 PM9/7/10
to Selenium Users
... your path in the command line :-)

I am not using selenium on windows, so i dont know how to call
selenium from command line on that OS.

Try to remove the tilde and the quotation marks, because selenium is
searching your profile in the current working directory.

>> C:\Installs\selenium-remote-control-1.0.3\selenium-server-1.0.3\

and appends your path to it

>> ... server-1.0.3\~\C:\Documents and Settings\dadams\Application Data\Mozilla\Firefox\Profiles\k39jzisz.SeleniumUser

this isnt existing :-(

Greetings

Moises Siles

unread,
Sep 7, 2010, 12:59:44 PM9/7/10
to seleniu...@googlegroups.com
Hi,

I ran the test using this line and works fine

java -jar selenium-server-1.0.1/selenium-server.jar -multiWindow -htmlSuite "*firefox" "http://localhost" "./MainTestSuite.html" "./TestResults.html" -firefoxProfileTemplate "c:\profsel"

My profile is on a folder called profsel
            c:\profsel

Thanks

DazManCat

unread,
Sep 8, 2010, 7:32:32 AM9/8/10
to Selenium Users
What I did in the end was:
I created a new profile and put it in "c:\lib\selenium\ff_profile"
as suggested on: http://agileqatesting.com/?p=27

and it seems to work correctly!

so the line in the batch file now looks like

java -jar selenium-server.jar -firefoxProfileTemplate "C:\lib\selenium
\ff_profile"


On Sep 7, 5:59 pm, Moises Siles <moises.si...@gmail.com> wrote:
> Hi,
>
> I ran the test using this line and works fine
>
> java -jar selenium-server-1.0.1/selenium-server.jar -multiWindow -htmlSuite
> "*firefox" "http://localhost" "./MainTestSuite.html" "./TestResults.html"
> -firefoxProfileTemplate "c:\profsel"
>
> My profile is on a folder called profsel
>             c:\profsel
>
> Thanks
>
> On Tue, Sep 7, 2010 at 8:18 AM, DazManCat <dazad...@gmail.com> wrote:
> > I've setup a new firefox profile for use with Selenium (accepted
> > certificate warnings for local QA site).
>
> > But, I keep getting told the profile directory does not exist.
>
> > This is the line from my batch file
>
> >    java -jar selenium-server.jar -firefoxProfileTemplate ~/"C:
> > \Documents and Settings\dadams\Application Data\Mozilla\Firefox
> > \Profiles\k39jzisz.SeleniumUser"
>
> > but the message I get is:
>
> >    Firefox profile template doesn't exist: C:\Installs\selenium-
> > remote-control-1.0.
> >    3\selenium-server-1.0.3\~\C:\Documents and Settings\dadams
> > \Application Data\Mozi
> >    lla\Firefox\Profiles\k39jzisz.SeleniumUser
>
> > The Profile I created is : C:\Documents and Settings\dadams
> > \Application Data\Mozi
> >    lla\Firefox\Profiles\k39jzisz.SeleniumUser.
>
> > Can anyone tell me what I have not done correctly?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Selenium Users" group.
> > To post to this group, send email to seleniu...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > selenium-user...@googlegroups.com<selenium-users%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages