You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(that also applies to the default one; we're not able to overwrite anything predefined in the php-webdriver defaults)
I think this code was copied from MinkSelenium2Driver, so I never really thought about it.
On a related note, I'm unsure how in general we are supposed to behave - should we be merging config, or generally overwriting it? That applies to php-webdriver defaults, our defaults and the end user's desired capaibilities.
The text was updated successfully, but these errors were encountered:
Ah, in WebdriverClassicDriver (this repo) you're doing different kind of merging. Anyway, we need to have a test to cover the correct default merging logic in either driver I guess.
webdriver-classic-driver/src/WebdriverClassicDriver.php
Line 801 in 61b12d0
☝️ That condition means that we cannot overwrite capabilities by the php-webdriver - in case of Firefox, because of this:
https://github.com/php-webdriver/php-webdriver/blob/4c18b78d93e4a724ad2dd6427ed658e61a45c569/lib/Remote/DesiredCapabilities.php#L299
For example, the following firefox capability change would not work:
(that also applies to the default one; we're not able to overwrite anything predefined in the php-webdriver defaults)
I think this code was copied from MinkSelenium2Driver, so I never really thought about it.
On a related note, I'm unsure how in general we are supposed to behave - should we be merging config, or generally overwriting it? That applies to php-webdriver defaults, our defaults and the end user's desired capaibilities.
The text was updated successfully, but these errors were encountered: