Maybe it's better to get current value is WebDriver call instead of reading `value` attribute? Also I bet this won't work for textarea.