spec/watirspec/strong_spec.rb in watir-webdriver-0.1.0 vs spec/watirspec/strong_spec.rb in watir-webdriver-0.1.1

- old
+ new

@@ -10,16 +10,12 @@ # Exists method describe "#exist?" do it "returns true if the element exists" do browser.strong(:id, "descartes").should exist browser.strong(:id, /descartes/).should exist - - bug "http://code.google.com/p/selenium/issues/detail?id=748", :webdriver do - browser.strong(:text, "Dubito, ergo cogito, ergo sum.").should exist - browser.strong(:text, /Dubito, ergo cogito, ergo sum/).should exist - end - + browser.strong(:text, "Dubito, ergo cogito, ergo sum.").should exist + browser.strong(:text, /Dubito, ergo cogito, ergo sum/).should exist browser.strong(:class, "descartes").should exist browser.strong(:class, /descartes/).should exist browser.strong(:index, 0).should exist browser.strong(:xpath, "//strong[@id='descartes']").should exist end @@ -73,13 +69,11 @@ lambda { browser.strong(:index, 1337).id }.should raise_error(UnknownObjectException) end end describe "#text" do - bug "http://code.google.com/p/selenium/issues/detail?id=748", :webdriver do - it "returns the text of the element" do - browser.strong(:index, 0).text.should == "Dubito, ergo cogito, ergo sum." - end + it "returns the text of the element" do + browser.strong(:index, 0).text.should == "Dubito, ergo cogito, ergo sum." end it "raises UnknownObjectException if the element doesn't exist" do lambda { browser.strong(:id, 'no_such_id').text }.should raise_error( UnknownObjectException) lambda { browser.strong(:xpath , "//strong[@id='no_such_id']").text }.should raise_error( UnknownObjectException)