Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add note to BaseElement#focus about http://code.google.com/p/selenium…

  • Loading branch information...
commit f0eb792e221843e3abe6c39b6e46dba38a7f0af2 1 parent 9afd751
@jarib jarib authored
Showing with 7 additions and 1 deletion.
  1. +6 −0 lib/watir-webdriver/base_element.rb
  2. +1 −1  spec/watirspec
View
6 lib/watir-webdriver/base_element.rb
@@ -230,6 +230,12 @@ def html
browserbot('getOuterHTML', @element).strip
end
+ #
+ # Note: Firefox queues focus events until the window actually has focus.
+ #
+ # See http://code.google.com/p/selenium/issues/detail?id=157
+ #
+
def focus
assert_exists
driver.execute_script "return arguments[0].focus()", @element
2  spec/watirspec
@@ -1 +1 @@
-Subproject commit 4af73faad19eb3264a9bca3079d21816ed2d9c91
+Subproject commit f4bc70db4129812cbb10ad46feb3865e34f38ec6
Please sign in to comment.
Something went wrong with that request. Please try again.