MDL-39348 behat: Compatibility with Safari