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