Sha256: 04ac24b93e926db96cb1759964c850b5866a0c3bbf1c996b7210e79fe806b458
Contents?: true
Size: 831 Bytes
Versions: 13
Compression:
Stored size: 831 Bytes
Contents
require 'spec_helper' require 'page-object/elements' describe PageObject::Elements::ListItem do let(:list_item) { PageObject::Elements::ListItem } describe "when mapping how to find an element" do it "should map watir types to same" do [:class, :id, :index, :xpath].each do |t| identifier = list_item.watir_identifier_for t => 'value' identifier.keys.first.should == t end end it "should map selenium types to same" do [:class, :id, :index, :name, :xpath].each do |t| key, value = list_item.selenium_identifier_for t => 'value' key.should == t end end describe "interface" do it "should register as tag_name :li" do ::PageObject::Elements.element_class_for(:li).should == ::PageObject::Elements::ListItem end end end end
Version data entries
13 entries across 13 versions & 1 rubygems