-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set desired capabilities for firefox #175
Comments
Could you post links to some documentation about WebDriver + Firefox + Desired Capabilities. Also what proxy stuff is doing there? First time I see that one. |
Core::selectProxy() is a function which can choose one of my proxies from the list. |
Do you have any idea to set image loadings enable/disable? |
Googling a bit about the subject reveals topics, where people do this by changing Firefox profile. I guess there is no such desired capability that you're talking about after all. |
I found these two links. But I couldn't apply them. Also, you can see "permissions.default.image" if you type "about:config" in Firefox. |
Well, Selenium2 capabilities don't allow to define each Firefox setting separately. There is a single capability for setting the profile, which is something in base64 (but the Selenium documentation only has Once you figure what goes inside, this can be configured this way: $driver = new \Behat\Mink\Driver\Selenium2Driver(
'firefox',
array(
'firefox' => array(
'profile' => base64_encode($profile),
),
)
); |
hmm, actually no. If you have the string content, you should set the |
@TugcaEker profile should be zipped with prefs.js in root of the archive and then you can set it as follows:: $this->driver->setDesiredCapabilities([
'firefox' => [
'profile' => 'foo\testProfile.zip',
]
]); or you can set it like @stof mentoioned using $this->driver->setDesiredCapabilities([
'firefox_profile' => 'base64 of zipped profile'
]); The first metod is just a sugar for the second one. You can find it here: |
I couldn't add capability to firefox driver. I added proxy option for connection but I couldn't set 'permissions.default.image' as '2'. Briefly, I want to disable image loading while test continue. What am I doing wrong?
(also I'm tried to send it as array)
The text was updated successfully, but these errors were encountered: