Sha256: c5aa5e21ed3316b67c6317d68c6ef7edf5e2dc3f6aa3a3a5072f0819a0f28252

Contents?: true

Size: 821 Bytes

Versions: 39

Compression:

Stored size: 821 Bytes

Contents

require 'spec_helper'
require 'page-object/elements'

describe PageObject::Elements::Label do
  let(:label) { PageObject::Elements::Label }

  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 = label.watir_identifier_for t => 'value'
        identifier.keys.first.should == t
      end
    end

    it "should map selenium types to same" do
      [:class, :id, :text, :index, :xpath].each do |t|
        key, value = label.selenium_identifier_for t => 'value'
        key.should == t
      end
    end

    describe "interface" do
      it "should register with tag :label" do
        ::PageObject::Elements.element_class_for(:label).should == ::PageObject::Elements::Label
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
meeane-page-object-0.1.11 spec/page-object/elements/label_spec.rb
page-object-1.0.2 spec/page-object/elements/label_spec.rb
page-object-1.0.1 spec/page-object/elements/label_spec.rb
page-object-1.0 spec/page-object/elements/label_spec.rb
page-object-0.9.8 spec/page-object/elements/label_spec.rb
page-object-0.9.7 spec/page-object/elements/label_spec.rb
page-object-0.9.6 spec/page-object/elements/label_spec.rb
page-object-0.9.5 spec/page-object/elements/label_spec.rb
page-object-0.9.4 spec/page-object/elements/label_spec.rb
page-object-0.9.3 spec/page-object/elements/label_spec.rb
page-object-0.9.2 spec/page-object/elements/label_spec.rb
page-object-0.9.1 spec/page-object/elements/label_spec.rb
page-object-0.9.0 spec/page-object/elements/label_spec.rb
page-object-0.8.10 spec/page-object/elements/label_spec.rb
page-object-0.8.9 spec/page-object/elements/label_spec.rb
page-object-0.8.8 spec/page-object/elements/label_spec.rb
page-object-0.8.7 spec/page-object/elements/label_spec.rb
page-object-0.8.6.1 spec/page-object/elements/label_spec.rb
page-object-0.8.6 spec/page-object/elements/label_spec.rb
page-object-0.8.5 spec/page-object/elements/label_spec.rb