Method $.setValue() does not press TAB because it breaks some tests. Now it triggers jQuery.change event instead.
Fixed Condition focused. Now it uses javascript native "document.activeElement" instead of ":focus" selector that does not work.