Sha256: c411f631280aeaf4a3e65b9b6ed53f35168ab24e1f9748292b8746b03346bf09
Contents?: true
Size: 792 Bytes
Versions: 37
Compression:
Stored size: 792 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, :text, :title, :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, :text, :title, :xpath].each do |t| key, value = span.selenium_identifier_for t => 'value' key.should == t end end end it "should register with tag_name :span" do ::PageObject::Elements.element_class_for(:span).should == ::PageObject::Elements::Span end end
Version data entries
37 entries across 37 versions & 2 rubygems