Permalink
Browse files

focus page container before focusing on the element itself

  • Loading branch information...
1 parent 0d1e8b2 commit 684286ed84170b5ad61d4c260a9a02a50f035748 @jarmo jarmo committed Jan 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 watir/lib/watir/element.rb
View
1 watir/lib/watir/element.rb
@@ -437,6 +437,7 @@ def create_event(event)
def focus
assert_exists
assert_enabled
+ @page_container.focus
ole_object.focus
end

0 comments on commit 684286e

Please sign in to comment.