How to fix: behat/mink/selenium error: invalid argument: ‘handle’ must be a string
Jun 16, 2021
or other incompatibilities issues with newest chromedrivers but outdated selenium webdriver libraries (like instaclick/php-webdriver).
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