Sha256: 646d2bb65ea83dd31d9ef95fa48f7e31d61d99f93706586f61b968c80289d1d7
Contents?: true
Size: 663 Bytes
Versions: 5
Compression:
Stored size: 663 Bytes
Contents
require 'spec_helper' require 'page-object/elements' describe PageObject::Elements::SelectList do let(:selectlist) { PageObject::Elements::SelectList } describe "when mapping how to find an element" do it "should map watir types to same" do [:class, :id, :index, :name, :text, :value, :xpath].each do |t| identifier = selectlist.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 = selectlist.selenium_identifier_for t => 'value' key.should == t end end end end
Version data entries
5 entries across 5 versions & 1 rubygems