Sha256: 8e15cc8e079ee02d522e82c1d484410d42efb7403560af04ba0bfad6e2889d12
Contents?: true
Size: 634 Bytes
Versions: 2
Compression:
Stored size: 634 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, :name, :xpath].each do |t| key, value = list_item.selenium_identifier_for t => 'value' key.should == t end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
page-object-0.0.5 | spec/page-object/elements/list_item_spec.rb |
page-object-0.0.4 | spec/page-object/elements/list_item_spec.rb |