Sha256: 7a4ae214e4aff9865b4e4f2405262d3e5dd2c8ac578ce41372a88eeface84281
Contents?: true
Size: 798 Bytes
Versions: 8
Compression:
Stored size: 798 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 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
8 entries across 8 versions & 1 rubygems