Sha256: fe0faeecee73439c2a9fe9dd4c049a68755f5bcb7946bea969c99c4b3bbfcae5
Contents?: true
Size: 631 Bytes
Versions: 15
Compression:
Stored size: 631 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, :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, :xpath].each do |t| key, value = span.selenium_identifier_for t => 'value' key.should == t end end end end
Version data entries
15 entries across 15 versions & 1 rubygems