I had a similar case I think with a large set of small tables that made
up the page and menus using javascript.
I found the tables using:
ie.show_tables
I then identified the ones of interest using the flash method -- so in
your case:
ie.table(:index, 3)[2][1].flash
To trigger the even I used fireEvent("onClick") like so:
ie.table(:index, 3)[2][1].fireEvent("onClick")
Also, if yours are links and are static -- you may be able to use
ie.show_links
Use flash to identify the index of the link in question:
ie.link(:index, 3).flash
and get to it through it's index:
ie.link(:index, 3).click
Hope that helps.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 7:23 AM
To: [email protected]
Subject: [Wtr-general] Newbie - Unable to click link in a table
Hi,
using Ruby to automate my IE testing.
On this particular page, I have a table that is displayed after a check
box is selected\set. (there are other tables on the page, but not
important for my
testing)
The first column of this table are all links. (all the links are the
word "select") The first row is just titles. I wish to access the second
row, 1st column and click on the link.
This does not work:
ie.table(:name,
'tableName')[2][1].link(:text,'Select').click
This does not work either:
ie.table(:index, 3)[2][1].click
I know I am using the right table names, etc.
I also did a showAllObjects...but the table names are not listed
there??? not quite sure why...
What else can I use to view all tables on the page?
Also, perhaps the code is being regenerated after the check box is
clicked...is there a way to reload the code without refreshing the page
itself???
Any help would be MOST appreciated !!
Thanks in advance...Lemme know if I can provide more info if I missed
anything...
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com _______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
The content contained in this electronic message is not intended to
constitute formation of a contract binding TWTC. TWTC will be
contractually bound only upon execution, by an authorized officer, of
a contract including agreed terms and conditions or by express
application of its tariffs.
This message is intended only for the use of the individual or entity
to which it is addressed. If the reader of this message is not the
intended recipient, or the employee or agent responsible for
delivering the message to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
message is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to
the sender of this E-Mail or by telephone.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general