Permalink
Browse files

Add test coverage for #within_frame

* Make sure focus is returned to parent
  • Loading branch information...
1 parent f991155 commit 85434c96f5dee185e1f7385fd51dafdcc240d9b3 Scott Albertson committed with jferris Nov 2, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/driver_spec.rb
View
@@ -113,6 +113,14 @@ def in_iframe_request?
driver.find("//p[contains(., 'yo')]").should_not be_empty
end
end
+
+ it "returns focus to parent" do
+ original_url = driver.current_url
+
+ driver.within_frame("f") {}
+
+ driver.current_url.should == original_url
+ end
end
context "error iframe app" do

0 comments on commit 85434c9

Please sign in to comment.