Displaying 1 result from an estimated 1 matches for "activeel".
Did you mean:
activeer
2006 Oct 30
1
domain language?
...ting 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 the Systir principles; they use parens () and
variables and state. They use a comment instead of an assertion
documentation string.
RSpec has gone a long way towards producing readab...