# encoding: utf-8
require File.dirname(__FILE__) + '/spec_helper'
not_compliant_on :watir do
describe " Frames" do
before :each do
browser.goto(WatirSpec.files + "/frames.html")
end
describe "#length" do
it "returns the correct number of frames" do
browser.frames.length.should == 2
end
end
describe "#[]" do
it "returns the frame at the given index" do
browser.frames[0].id.should == "frame_1"
end
end
describe "#each" do
it "iterates through frames correctly" do
browser.frames.each_with_index do |f, index|
f.id.should == browser.frame(:index, index).id
f.value.should == browser.frame(:index, index).value
end
end
end
end
describe "