Tuyet Cong-Ton-Nu wrote:

I used SpySmith (great tool, thanks Bret for letting us know) to find a value (USAL6l1) in a table and it gave me this info:

Innermost Element: [TD], Frame: [main/body/tabContent], Index: [137]

<TD>

<NOBR>USAL6I1</NOBR></TD>

 

I want to extract “USAL6l1” from this table, and I can do it in irb with this command:

irb(main):032:0> puts frame1.table(:index, 3)[6][3]

USAL6I1

 

But how can I do it using the Index [137] that SpySmith gave me?

 

I looked at the table_test.rb and tried various combinations, but nothing worked.

Your help is appreciated.  Thanks.


_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
That index is based on the sourceIndex property of the element... Maybe we should add support for finding items by sourceIndex or by index from the all collection...

What'dya think bret?

j.




_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to