Permalink
Browse files

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

  • Loading branch information...
1 parent 9afd751 commit f0eb792e221843e3abe6c39b6e46dba38a7f0af2 @jarib jarib committed Jan 21, 2010
Showing with 7 additions and 1 deletion.
  1. +6 −0 lib/watir-webdriver/base_element.rb
  2. +1 −1 spec/watirspec
@@ -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

0 comments on commit f0eb792

Please sign in to comment.