Sha256: 9067a4e1b10cf7dca50213f01ede0dd3826545ae7b927b0235a72e155e6f7d95

Contents?: true

Size: 404 Bytes

Versions: 2

Compression:

Stored size: 404 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

2 entries across 2 versions & 1 rubygems

Version Path
watir-webdriver-0.1.1 spec/element_spec.rb
watir-webdriver-0.1.0 spec/element_spec.rb