Sha256: 6c5d2a138e182aad64b4bdf5a03d34d5a800473c64c08571336a7586f4e202f0
Contents?: true
Size: 993 Bytes
Versions: 2
Compression:
Stored size: 993 Bytes
Contents
require 'spec_helper' require 'page-object/elements' describe PageObject::Elements::TextField do let(:textfield) { PageObject::Elements::TextField } describe "when mapping how to find an element" do it "should map watir types to same" do [:class, :id, :index, :name, :tag_name, :xpath].each do |t| identifier = textfield.watir_identifier_for t => 'value' identifier.keys.first.should == t end end it "should map selenium types to watir" do identifier = textfield.watir_identifier_for :css => 'value' identifier.keys.first.should == :tag_name end it "should map selenium types to same" do [:class, :css, :id, :name, :xpath].each do |t| key, value = textfield.selenium_identifier_for t => 'value' key.should == t end end it "should map watir types to selenium" do key, value = textfield.selenium_identifier_for :tag_name => 'value' key.should == :css end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
page-object-0.0.5 | spec/page-object/elements/text_field_spec.rb |
page-object-0.0.4 | spec/page-object/elements/text_field_spec.rb |