Sha256: 6a714ce9bd6940d9bb41c371660069890d9e63bc96b7d14af2fb0683af90013c
Contents?: true
Size: 873 Bytes
Versions: 2
Compression:
Stored size: 873 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, :text, :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, :text, :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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meeane-page-object-0.1.10 | spec/page-object/elements/list_item_spec.rb |
meeane-page-object-0.1.8 | spec/page-object/elements/list_item_spec.rb |