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