Sha256: 8d79e0eb7e3b873375c41b20e0f5a0c33be1e993867ab2a27a40249f7e4ed438
Contents?: true
Size: 793 Bytes
Versions: 3
Compression:
Stored size: 793 Bytes
Contents
require 'spec_helper' require 'druid/elements' describe Druid::Elements::Link do describe "when mapping how to find an element" do it "should map watir types to same" do [:class, :href, :id, :index, :name, :text, :xpath, :css, :title].each do |t| identifier = Druid::Elements::Link.identifier_for t => 'value' expect(identifier.keys.first).to eql t end end it "should map selenium types to watir" do [:link, :link_text].each do |t| identifier = Druid::Elements::Link.identifier_for t => 'value' expect(identifier.keys.first).to eql :text end end end describe "interface" do it "should register with tag :a" do expect(Druid::Elements.element_class_for(:a)).to be Druid::Elements::Link end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
druid-ts-1.2.2 | spec/druid/elements/link_spec.rb |
druid-ts-1.2.1 | spec/druid/elements/link_spec.rb |
druid-ts-1.2.0 | spec/druid/elements/link_spec.rb |