Sha256: e1b12ade5990e80998cc1460f984e1f0a86d9bbed9f2d96466696014133d8741
Contents?: true
Size: 889 Bytes
Versions: 5
Compression:
Stored size: 889 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' expect(identifier.keys.first).to eql 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' expect(key).to eql t end end describe "interface" do it "should register with tag :div" do expect(::PageObject::Elements.element_class_for(:div)).to eql ::PageObject::Elements::Div end end end end
Version data entries
5 entries across 5 versions & 1 rubygems