Compare with activeElement for toBeFocused for phantomjs support.