Permalink
Browse files

do not blur body, because it will hide browser under some circumstances

  • Loading branch information...
1 parent 419ceef commit 23fea950db4e72a9e71cdb53cc24417f2c925d04 @jarmo jarmo committed Mar 17, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 watir/lib/watir/ie-class.rb
@@ -732,7 +732,8 @@ def show_labels
# Gives focus to the frame
def focus
- document.activeElement.blur
+ active_element = document.activeElement
+ active_element.blur unless active_element.tagName == "BODY"
document.focus
end

0 comments on commit 23fea95

Please sign in to comment.