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