mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
test for within frame and scope resetting
This commit is contained in:
parent
89ba2c6ecc
commit
7457ba9b58
1 changed files with 7 additions and 0 deletions
|
@ -42,4 +42,11 @@ Capybara::SpecHelper.spec '#within_frame', :requires => [:frames] do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
it "should reset scope when changing frames", tw: true do
|
||||||
|
@session.within(:css, '#divInMainWindow') do
|
||||||
|
@session.within_frame 'parentFrame' do
|
||||||
|
@session.has_selector?(:css, "iframe#childFrame").should be_true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue