Sha256: b7bed5d2aaa1d6f89e93aa81220944ddc817232d64ac42900f211f71f9c8962a
Contents?: true
Size: 573 Bytes
Versions: 20
Compression:
Stored size: 573 Bytes
Contents
require 'watirspec_helper' describe 'TextArea' do before :each do browser.goto WatirSpec.url_for('forms_with_input_elements.html') end let(:textarea) { browser.textarea } it 'can set a value' do textarea.set 'foo' expect(textarea.value).to eq 'foo' end it 'can clear a value' do textarea.set 'foo' textarea.clear expect(textarea.value).to eq '' end it 'locates textarea by value' do browser.textarea.set 'foo' expect(browser.textarea(value: /foo/)).to exist expect(browser.textarea(value: 'foo')).to exist end end
Version data entries
20 entries across 20 versions & 1 rubygems