Sha256: e4865fc8fbace5ed3ed0f33dfae49660afc6ebffb356c7562a44872e38cb2701

Contents?: true

Size: 414 Bytes

Versions: 7

Compression:

Stored size: 414 Bytes

Contents

require File.dirname(__FILE__) + '/watirspec/spec_helper'

describe Watir::BaseElement 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

7 entries across 7 versions & 1 rubygems

Version Path
watir-webdriver-0.0.6 spec/base_element_spec.rb
watir-webdriver-0.0.5 spec/base_element_spec.rb
watir-webdriver-0.0.4 spec/base_element_spec.rb
watir-webdriver-0.0.3 spec/base_element_spec.rb
watir-webdriver-0.0.2 spec/base_element_spec.rb
watir-webdriver-0.0.1 spec/base_element_spec.rb
watir-webdriver-0.0.1.dev7 spec/base_element_spec.rb