Sha256: 724f8818857f68717c80074d5e2017cf4d100f9931ef16d91d046e337a82afb0

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

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


describe Watir::Element do

  before :each do
    browser.goto("file://" + File.expand_path("html/keylogger.html", File.dirname(__FILE__)))
  end

  describe "#send_keys" do
    it "sends keystrokes to the element" do
      browser.div(:id, 'receiver').send_keys("hello world")
      browser.div(:id, 'output').ps.size.should == 11
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir-webdriver-0.0.7 spec/element_spec.rb