Sha256: 2dc418590046b14b0db6611c357462ee6c628c2d6a0092a11ec64d9eff3ee16a
Contents?: true
Size: 983 Bytes
Versions: 2
Compression:
Stored size: 983 Bytes
Contents
require 'spec_helper' require 'druid/elements' describe Druid::Elements::TextArea do 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 = Druid::Elements::TextArea.identifier_for t => 'value' expect(identifier.keys.first).to eql t end end it "should map selenium types to watir" do identifier = Druid::Elements::TextArea.identifier_for :css => 'value' expect(identifier.keys.first).to eql :tag_name end end describe "interface" do let(:element) { double "element" } let(:text_area) { Druid::Elements::TextArea.new(element) } it "should set its' value" do expect(element).to receive(:set).with('test') text_area.value = 'test' end it "should register with tag_name :textarea" do expect(Druid::Elements.element_class_for(:textarea)).to be Druid::Elements::TextArea end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
druid-ts-1.1.3 | spec/druid/elements/text_area_spec.rb |
druid-ts-1.1.2 | spec/druid/elements/text_area_spec.rb |