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