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