Method $.setValue is made faster by setting value (and generating keydown/keypress/keyup) with javascript instead of calling slow "sendKeys" method.