How can i write rspec testing for Iframe content? my Iframe look like
<iframe src="/any url" name="Original">
...
<div>test </div>
</iframe>
in between iframe whatever content, I want to write rspec test case for that content. How can i do ?
how can i check “test” is in iframe using rspec ? I write below but not pass
page.should have_content("test")
error like
Failure/Error: page.should have_content("test")
expected there to be content "test" in "Customize ....
I use capybara – 1.1.2 and rspec – 2.11.0 and rails 3.2.8
Following one works with selenium driver, possibly with other drivers too, but not for rack_test.
/index.html:
/iframer.html:
spec: