Using new firefox profile configuration (Desired Capabilities)

1,032 views
Skip to first unread message

Yaroslav Novikov

unread,
Mar 18, 2013, 8:38:53 AM3/18/13
to be...@googlegroups.com

Could You help me with using this setting?

My problem is that i don't really know how to use it, and I have a several questions:
- Where do I need to set path to Firefox Profile? In behat.yml file?
- If in file, Could You please explain how can I do this, it would be great if it was some example.

 Thanks

Shashikant Jagtap

unread,
Mar 18, 2013, 9:56:59 AM3/18/13
to be...@googlegroups.com
Hi Yaroslav,


It seems like This config should Work 


extensions:
    Behat\MinkExtension\Extension:
      selenium2:
        browser: firefox
        wd_host:
        capabilities: { "etc etc "}
firefox:
profile: path/to/your/zip file/

Not sure but looking at the code, it should work perfect. worth Trying :)  Let me know either way if it works.  

Kind Regards,
Shashi. 





--
You received this message because you are subscribed to the Google Groups "Behat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to behat+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Yaroslav Novikov

unread,
Mar 19, 2013, 12:05:08 AM3/19/13
to be...@googlegroups.com
I tried like this:

default:

   extensions:

       Behat\MinkExtension\Extension:

           goutte: ~

           selenium2:

             browser: firefox

             firefox:

               profile: path_to_/firefox_profile.zip


and


default: extensions: Behat\MinkExtension\Extension: goutte: ~ selenium2: browser: firefox wd_host: capabilities: firefox: profile: path_to_/firefox_profile.zip


but it does not help


Yaroslav Novikov

unread,
Mar 19, 2013, 12:06:18 AM3/19/13
to be...@googlegroups.com
 [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
 Unrecognized options "firefox" under "behat.extensions.behat_minkextension_extension.selenium2"

Konstantin Kudryashov

unread,
Mar 19, 2013, 12:29:43 PM3/19/13
to be...@googlegroups.com
Try to update to the latest MinkExtension. It looks like you're using highly outdated one.

Konstantin Kudryashov
--- PHP developer, BDD evangelist, Scrum master

a: http://about.me/everzet
b: http://everzet.com
c: https://github.com/everzet

On Tuesday, 19 March 2013 at 05:06, Yaroslav Novikov wrote:

 [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
 Unrecognized options "firefox" under "behat.extensions.behat_minkextension_extension.selenium2"

--

Vanille

unread,
Jul 9, 2013, 5:03:28 AM7/9/13
to be...@googlegroups.com
Hi Yaroslav.

The correct way to specify the profile (when looking close into /MinkExtension/Extension.php) is this:

extensions:
    Behat\MinkExtension\Extension:
      selenium2:
        browser: firefox
        wd_host:
       capabilities: { 'firefox': {'profile':'path/to/your/zip file'} }


It still doesn't work though. So something further up the line is not wired correctly.

Until someone finds out what the problem is you can run your tests with a specific profile by starting your selenium server like this:

java -jar selenium-server-standalone-2.33.0.jar -Dwebdriver.firefox.profile=[name of your profile (not the zip)]

- Rikke




Reply all
Reply to author
Forward
0 new messages