spec/element_spec.rb in watir-webdriver-0.2.0 vs spec/element_spec.rb in watir-webdriver-0.2.1
- old
+ new
@@ -3,11 +3,11 @@
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
+ browser.element(:id, 'receiver').send_keys("hello world")
+ browser.element(:id, 'output').ps.size.should == 11
end
end
describe "#present?" do
before do