Sha256: 4f7e3d604357f0d75d8bd2a62574f09baa266ef007c66bcd818cd57386cd51ef

Contents?: true

Size: 403 Bytes

Versions: 8

Compression:

Stored size: 403 Bytes

Contents

require File.expand_path('watirspec/spec_helper', File.dirname(__FILE__))

describe Watir::Element do

  describe "#send_keys" do
    it "sends keystrokes to the element" do
      browser.goto("file://" + File.expand_path("html/keylogger.html", File.dirname(__FILE__)))
      browser.div(:id, 'receiver').send_keys("hello world")
      browser.div(:id, 'output').ps.size.should == 11
    end
  end

end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
watir-webdriver-0.1.8 spec/element_spec.rb
watir-webdriver-0.1.7 spec/element_spec.rb
watir-webdriver-0.1.6 spec/element_spec.rb
watir-webdriver-0.1.5 spec/element_spec.rb
watir-webdriver-0.1.4 spec/element_spec.rb
watir-webdriver-0.1.3 spec/element_spec.rb
watir-webdriver-0.1.2 spec/element_spec.rb
ayanko-watir-webdriver-0.1.1.1 spec/element_spec.rb