When the value of the 'index' variable is 0, I'm getting an OLE error with
the following code

    $ie.table(:id,'job_list')[index].link(:href,/results\/show/).exists?

Does this mean that the [] method in Watir::Table is 1 based rather than 0
based as normal Ruby arrary are?

If so, I think
- this should be documented,
- a clear error message should be given when this occurs

Below is the error message I'm getting

test_1_succeed_failure_symbols(Test_total_success_warning_failure_error_all):
WIN32OLERuntimeError: item
    OLE error code:80070057 in htmlfile
      Invalid argument.
    HRESULT error code:0x80020009
      Exception occurred.
    C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/table.rb:159:in
`method_missing'
    C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/table.rb:159:in
`_row'
    C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/table.rb:99:in `[]'

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Reply via email to