Sha256: bdf0eb1c91ed80fb81163df85443cb1bbf3f32a9e84fb1da88a6aa3a90e507b0
Contents?: true
Size: 877 Bytes
Versions: 5
Compression:
Stored size: 877 Bytes
Contents
require 'spec_helper' require 'page-object/elements' describe PageObject::Elements::Paragraph do let(:paragraph) { PageObject::Elements::Paragraph } 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 = paragraph.watir_identifier_for t => 'value' expect(identifier.keys.first).to eql t end end it "should map selenium types to same" do [:class, :id, :name, :xpath, :index].each do |t| key, value = paragraph.selenium_identifier_for t => 'value' expect(key).to eql t end end end describe "interface" do it "should register with type :checkbox" do expect(::PageObject::Elements.element_class_for(:p)).to eql ::PageObject::Elements::Paragraph end end end
Version data entries
5 entries across 5 versions & 1 rubygems