MinkExtension icon indicating copy to clipboard operation
MinkExtension copied to clipboard

The capability for firefox profile does not work

Open mandarille opened this issue 11 years ago • 6 comments

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.

mandarille avatar Jul 09 '13 09:07 mandarille

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?

kenden avatar Apr 16 '14 14:04 kenden

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"

mandarille avatar Apr 22 '14 09:04 mandarille

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?

kwisatz avatar Oct 24 '14 10:10 kwisatz

@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 avatar Apr 05 '15 10:04 eddiejaoude

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

eddiejaoude avatar Apr 05 '15 16:04 eddiejaoude

Same here :(

zuernBernhard avatar Oct 19 '16 10:10 zuernBernhard