diff --git a/spec/driver_spec.rb b/spec/driver_spec.rb index e5bd8fe..020925f 100644 --- a/spec/driver_spec.rb +++ b/spec/driver_spec.rb @@ -29,6 +29,11 @@ describe Capybara::Driver::Webkit do Next
+ +
@@ -179,4 +184,12 @@ describe Capybara::Driver::Webkit do it "returns a textarea's value" do subject.find("//textarea").first.value.should == "what a wonderful area for text" end + + it "returns a text input's value" do + subject.find("//input").first.value.should == "bar" + end + + it "returns a select's value" do + subject.find("//select").first.value.should == "Capybara" + end end