File tree 2 files changed +12
-1
lines changed 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ def switch_to_frame(handle)
123
123
@frame_stack = [ ]
124
124
else
125
125
@frame_stack << handle
126
- inject_extensions
127
126
end
128
127
end
129
128
Original file line number Diff line number Diff line change 824
824
expect ( e ) . to be_a ( Capybara ::ElementNotFound )
825
825
end )
826
826
end
827
+
828
+ it "generates no javascript errors when switching into a frame" do
829
+ @session . driver . browser . evaluate_on_new_document (
830
+ "window.errors ||= []; window.onerror = function(msg) { window.errors += msg; };"
831
+ )
832
+
833
+ @session . visit "/cuprite/frames"
834
+ @session . within_frame ( 0 ) do
835
+ expect ( @session . evaluate_script ( "window.errors" ) ) . to be_empty
836
+ end
837
+ expect ( @session . evaluate_script ( "window.errors" ) ) . to be_empty
838
+ end
827
839
end
828
840
829
841
it "handles obsolete node during an attach_file" do
You can’t perform that action at this time.
0 commit comments