MDL-39348 behat: Compatibility with Safari and IE