Sha256: 1791cfee3ed1850af6db529e4336e0cb3aad379ca661700c5b6a0f438f170450
Contents?: true
Size: 978 Bytes
Versions: 3
Compression:
Stored size: 978 Bytes
Contents
# frozen_string_literal: true require_relative '../unit_helper' module Watir module Locators class TextArea describe SelectorBuilder do include LocatorSpecHelper let(:selector_builder) { described_class.new(attributes, query_scope) } describe '#build' do context 'when String value' do it 'returns value argument' do selector = {tag_name: 'textarea', value: 'Foo'} built = {xpath: ".//*[local-name()='textarea']", value: 'Foo'} expect(selector_builder.build(selector)).to eq built end end context 'when Regexp value' do it 'returns value argument' do selector = {tag_name: 'textarea', value: /Foo/} built = {xpath: ".//*[local-name()='textarea']", value: /Foo/} expect(selector_builder.build(selector)).to eq built end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
watir-7.3.0 | spec/unit/selector_builder/textarea_spec.rb |
watir-7.2.2 | spec/unit/selector_builder/textarea_spec.rb |
watir-7.2.1 | spec/unit/selector_builder/textarea_spec.rb |