Fixed the way to set value in fields to support events properly

Refs https://github.com/Behat/MinkSelenium2Driver/issues/143