Here's the sitch:
- running Watir 1.4.1, Ruby 184-16 on Win XP Pro SP2
- I want to check that a certain label on the page = "TEST" before I proceed with the next line (which is to delete the current showing record)
Line of code in my script:
assert_equal("TEST" , $ie.span(:id, /NodeIdentifierLabel/).text )
When I run the script, it fails on that line with the output:
----
1) Failure:
test_g_R_n_D(TC_OD_site_map_walkthru) [OD_site_map_walkthrough.rb:522]:
<"TEST"> expected but was
<".">.
4 tests, 1 assertions, 1 failures, 0 errors
----
I used IRB to attach to the IE window and I ran the command:
----
irb(main):049:0> puts ie.span(:id, /NodeIdentifierLabel/).text
TEST
=> nil
----
Is there something I'm doing wrong? Where can I find out more information about these assertion commands? The Watir API reference lists a different set of commands than are used in the unittests.
Please let me know. Thanks. Paul.
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
