Sha256: 833c303ba2af394f664dd9f5825f2159f97f8db10ba155e76580950ad0cc2436
Contents?: true
Size: 448 Bytes
Versions: 12
Compression:
Stored size: 448 Bytes
Contents
shared_examples_for "find_by_id" do describe '#find_by_id' do before do @session.visit('/with_html') end it "should find any element by id" do @session.find_by_id('red').tag_name.should == 'a' @session.find_by_id('hidden_via_ancestor').tag_name.should == 'div' end it "should return nil if no element with id is found" do @session.find_by_id('nothing_with_this_id').should be_nil end end end
Version data entries
12 entries across 12 versions & 6 rubygems