Change replace to provide.
See https://github.com/Behat/MinkSelenium2Driver/issues/155