update test for frame scoping behavior change

This commit is contained in:
Thomas Walpole 2017-03-07 20:51:57 -08:00
parent 5534b3932f
commit c99ebbcf37
2 changed files with 5 additions and 2 deletions

View File

@ -64,7 +64,7 @@ Capybara::SpecHelper.spec '#within_frame', requires: [:frames] do
it "should reset scope when changing frames" do
@session.within(:css, '#divInMainWindow') do
@session.within_frame 'parentFrame' do
@session.within_frame 'innerParentFrame' do
expect(@session.has_selector?(:css, "iframe#childFrame")).to be true
end
end

View File

@ -4,7 +4,10 @@
<title>With Frames</title>
</head>
<body>
<div id="divInMainWindow">This is the text for divInMainWindow</div>
<div id="divInMainWindow">
This is the text for divInMainWindow
<iframe src="/frame_parent" id="innerParentFrame"></iframe>
</div>
<iframe src="/frame_one" id="frameOne" name="my frame one"></iframe>
<iframe src="/frame_two" id="frameTwo"></iframe>
<iframe src="/frame_parent" id="parentFrame"></iframe>