MinkExtension
MinkExtension copied to clipboard
The capability for firefox profile does not work
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.
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?
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"
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?
@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?
I have moved on a bit now, making some progress. I am logging my notes here https://gist.github.com/eddiejaoude/0076739fe610189581d0
Same here :(