Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 23fea950db4e72a9e71cdb53cc24417f2c925d04 1 parent 419ceef
Jarmo Pertman jarmo authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  watir/lib/watir/ie-class.rb
3  watir/lib/watir/ie-class.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.