How to fix: behat/mink/selenium error: invalid argument: ‘handle’ must be a string

Philipp Scheit
Jun 16, 2021

or other incompatibilities issues with newest chromedrivers but outdated selenium webdriver libraries (like instaclick/php-webdriver).

set goog:chromeOptions with w3c: false in extra_capabilities (note: its confusing that it is nested IN capabilities)

since the new chrome webdriver is w3c compatible, but behat isnt yet.

This was the github thread that helped: https://github.com/minkphp/MinkSelenium2Driver/issues/293

but be aware: chromeOptions was renamed to goog:chromeOptions

You can track: https://github.com/instaclick/php-webdriver/issues/84 to see when the issue is fixed

--

--