Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

The capability for firefox profile does not work #92

Open
mandarille opened this issue Jul 9, 2013 · 6 comments
Open

The capability for firefox profile does not work #92

mandarille opened this issue Jul 9, 2013 · 6 comments

Comments

@mandarille
Copy link
Contributor

According to 'Extension.php' the profile should be specified as:

Behat\MinkExtension\Extension:    
      selenium2:
        capabilities: {'firefox': {'profile':'/path-to-zip'} }

The profile though doesn't get applied - instead webdriver creates an anonymous profile.

@kenden
Copy link

kenden commented Apr 16, 2014

Where did you see this? I don't see this in:
https://github.com/Behat/MinkExtension/blob/2.0/src/Behat/MinkExtension/Extension.php

Anyway:
According to the Selenium doc at:
http://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/firefox/FirefoxDriver.html#PROFILE

The profile should be the NAME of the profile, not the path:
webdriver.firefox.profile - The name of the profile to use (normally "WebDriver").

Does it work?

@mandarille
Copy link
Contributor Author

Can't remember where I read that it should be path to a zip, but when I try to just specify the name of the profile I get this error:

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Invalid configuration for path "behat.extensions.behat_minkextension_extension.selenium2.capabilities.firefox.profile": Cannot find profile zip file "da_profile"

[InvalidArgumentException]
Cannot find profile zip file "da_profile"

@kwisatz
Copy link

kwisatz commented Oct 24, 2014

Same here… and since mozilla seems to have some weird defaults now, I would kind of need to get this working. Any news on this?

@eddiejaoude
Copy link

@mandarille I had the same issue, then adding the relative path to the profile from where I was running the behat command from (or the full path) solved that issue (no more error). However, it still doesn't load the profile preferences.

Did anyone have anymore luck with this or find an alternative solution?

@eddiejaoude
Copy link

I have moved on a bit now, making some progress. I am logging my notes here https://gist.github.com/eddiejaoude/0076739fe610189581d0

@zuernBernhard
Copy link

Same here :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants