Selenium tests respond to user events, correction to cover all the cases