@@leftNav = Array.new
@@leftNav = $ie.table(:class, "tableLeftNav").innerText
@@leftNav_a = $ie.table(:class,
"tableLeftNav").row_count_excluding_nested_tables
puts(@@leftNav, @@leftNav_a)
for i in 1..@@leftNav_a
@@leftNav.each do |i|
$ie.link(:text, "#{@@leftNav[i]}").click
>From puts @@leftNav, I am getting:
Scope (0)
Sections (0)
Dates (0)
Related Sources (0)
***************************************
When I am trying to locate the cell for .link,
I am getting an error:
Watir::Exception::UnknownObjectException: Unable to locate element,
using :text, "Scope (0) \r\n"
I dont know why it is appending: \r\n, and how to truncate it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---