Sha256: 59ac4df9ce1de218cdcdfd5d28e3422794f2c88a00f983d612d79133817cb72d
Contents?: true
Size: 617 Bytes
Versions: 3
Compression:
Stored size: 617 Bytes
Contents
require 'spec_helper' require 'page-object/elements' describe PageObject::Elements::Span do let(:span) { PageObject::Elements::Span } 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 = span.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 = span.selenium_identifier_for t => 'value' key.should == t end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
page-object-0.2.3 | spec/page-object/elements/span_spec.rb |
page-object-0.2.2 | spec/page-object/elements/span_spec.rb |
page-object-0.2.1 | spec/page-object/elements/span_spec.rb |