Displaying 2 results from an estimated 2 matches for "rspec_watir".
2006 Oct 30
1
domain language?
...nguage in the parchment-colored area on the right.
I don''t want to invent it the bass-ackwards way FIT does, with its
Java-style Action Fixture. That just gets me back to writing each line
as a custom function. Ruby solutions tend to be much more elegant than
that!
Now here''s my RSpec_Watir solution, to log into a site:
snapshot()
@browser.should_contain("login")
@browser.text_field(:id, ''login'').should_exist
@browser.ie.document.activeElement.name.should_equal(''login'')
# .because login field should have the focus
Those lines violate th...
2006 Sep 07
0
Dead easy Watir AND Selenium
...Watir examples to RSpec''s svn.
Today I added some Selenium (actually - Selenium Remote Control) examples.
It''s dead easy to use both, and the Ruby code you end up writing is
actually quite similar. Here''s a taste:
== Watir ==
require File.dirname(__FILE__) + ''/rspec_watir''
context "Google''s search page" do
setup do
@browser.goto(''http://www.google.com'')
end
specify "should find rspec''s home page" do
@browser.text_field(:name, "q").set("rspec")
@browser.button(:n...