Sha256: f5036dba7ea4a0f006a97bd036d0cb180724add99769a0b8b8063bf7695bbe9b
Contents?: true
Size: 874 Bytes
Versions: 2
Compression:
Stored size: 874 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, :name, :title, :css].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, :title, :css].each do |t| key, value = div.selenium_identifier_for t => 'value' key.should == t end end describe "interface" do it "should register with tag :div" do ::PageObject::Elements.element_class_for(:div).should == ::PageObject::Elements::Div end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meeane-page-object-0.1.10 | spec/page-object/elements/div_spec.rb |
meeane-page-object-0.1.8 | spec/page-object/elements/div_spec.rb |