Make test.create-event.selenium.js more reliable (issue #267)