Firefox Profile cannot be loaded

194 views
Skip to first unread message

Selenium Learner

unread,
Apr 16, 2015, 2:24:34 AM4/16/15
to selenium-users
Hi Experts,

I am executing selenium scripts on firefox, during execution I am getting as "Your Firefox Profile cannot be loaded, It may be missing or inaccessible". So what is the behind reason to get this. 


Attaching the screen shot for the same.Thanks in advance.

Regards,
Sunny
Firefox.png

Abhishek Chakraborty

unread,
Apr 16, 2015, 5:12:07 AM4/16/15
to seleniu...@googlegroups.com
In the code u must be using some profile name, which u have not created.
Like if i use the below code, before that i should create FF profile name as "Selenium" under firefox.exe -p ProfileManager
***************************************************************************
                ProfilesIni prof=new ProfilesIni();
FirefoxProfile p=prof.getProfile("Selenium");
FirefoxDriver wd=new FirefoxDriver(p);
****************************************************************************

Thanks
Abhishek

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAGYyqNDvqGQv7NDiY9XEvnQrwq5tkvhiOvkBfr_LEBdZSzJ8LA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
~Abhishek

Gopa Kishore Mindi

unread,
Apr 21, 2015, 4:31:10 AM4/21/15
to seleniu...@googlegroups.com
Hi 

In addition to Abhishek, either you create a profile by using the below steps or use the default profile in your code.

Steps to create a new profile:

start-->run-->firefox.exe -p->ok-->create a new profile(provide the name that you are using in the code )

Let me know if it does not work for you.

Thanks,

Gopa

Vinu Joseph

unread,
Apr 22, 2015, 3:56:47 AM4/22/15
to seleniu...@googlegroups.com
Hi,
You need to add the following line in your code while initiating the firefox driver :-

System.setProperty("webdriver.firefox.profile", "default");

driver = new FirefoxDriver();

This will launch FF browser in its default way.

Regards,

VJ

https://itisatechiesworld.wordpress.com/

Reply all
Reply to author
Forward
0 new messages