Sha256: 0d46e1e59c8b9dc217cb4d5421529677eb003058968bb55bfa07d8d17a7cc8d3
Contents?: true
Size: 661 Bytes
Versions: 3
Compression:
Stored size: 661 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