Sha256: d0ed2f2dbe6b9d26810654f3736c20165f60f9725176fcf13cb5d5ee57269bfb
Contents?: true
Size: 775 Bytes
Versions: 4
Compression:
Stored size: 775 Bytes
Contents
require 'spec_helper' require 'druid/elements' describe Druid::Elements::HiddenField do describe "when mapping how to find an element" do it "should map watir types to same" do [:class, :id, :index, :name, :xpath, :value].each do |t| identifier = Druid::Elements::HiddenField.identifier_for t => 'value' expect(identifier.keys.first).to eql t end end it "should map selenium types to watir" do identifier = Druid::Elements::HiddenField.identifier_for :css => 'value' expect(identifier.keys.first).to eql :tag_name end end describe "interface" do it "should register with type :hidden" do expect(Druid::Elements.element_class_for(:input, :hidden)).to be Druid::Elements::HiddenField end end end
Version data entries
4 entries across 4 versions & 1 rubygems