Change the behat wait method to check if Selenium2Driver is used before executing