Sha256: fe8775c7ac098c9f622783be391bdbf8c7432b385bff21bc10fbd4f01763790f
Contents?: true
Size: 626 Bytes
Versions: 18
Compression:
Stored size: 626 Bytes
Contents
require 'spec_helper' require 'page-object/elements' describe PageObject::Elements::Div do let(:div) { PageObject::Elements::Div } describe "when mapping how to find an element" do it "should map watir types to same" do [:class, :id, :text, :index, :xpath].each do |t| identifier = div.watir_identifier_for t => 'value' identifier.keys.first.should == t end end it "should map selenium types to same" do [:class, :id, :text, :index, :name, :xpath].each do |t| key, value = div.selenium_identifier_for t => 'value' key.should == t end end end end
Version data entries
18 entries across 18 versions & 1 rubygems