Sha256: c81b49c405e99fca3e93a1763469b7394057eb93eb9087207bac1e177a4f2d2e
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
require 'spec_helper' require 'page-object/elements' describe PageObject::Elements::Link do let(:link) { PageObject::Elements::Link } describe "when mapping how to find an element" do it "should map watir types to same" do [:class, :href, :id, :index, :name, :text, :xpath].each do |t| identifier = link.watir_identifier_for t => 'value' identifier.keys.first.should == t end end it "should map selenium types to watir" do [:link, :link_text].each do |t| identifier = link.watir_identifier_for t => 'value' identifier.keys.first.should == :text end end it "should map selenium types to same" do [:class, :id, :link, :link_text, :name, :xpath].each do |t| key, value = link.selenium_identifier_for t => 'value' key.should == t end end it "should map watir types to selenium" do key, value = link.selenium_identifier_for :text => 'value' key.should == :link_text end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
page-object-0.0.2 | spec/page-object/elements/link_spec.rb |
page-object-0.0.1 | spec/page-object/elements/link_spec.rb |