Do feature detection instead of browser detection for ui test.

The previous `isIE()` check returned false for IE11.