Here's the HTML. This row repeats with different values. The field with "Name Goes Here" in it is the field we're filtering on - if this field is matched by a given regex, then make a note that we need to click the button in the last column of this row.
<tr> <td class='dataentry'><p class='pagecontents'>Name Goes Here</p></td> <td class='dataentry'><p class='pagecontents'>Active Member</p></td> <td class='dataentry'><p class='pagecontents'>AU, REV</p></td> <td class='dataentry'><p class='pagecontents'> Support </p></td> <TD CLASS='dataentry' WIDTH=1% ALIGN=CENTER><P CLASS='pagecontents'><a href=" javascript: popWindow('s?NEXT_PAGE=ALTER_PERMISSIONS_POPUP&PERSON_ID=00000&PAGE_NAME=SUPPORT_ADD_USER3A&ORGANIZATION_ID=0000&EDIT_PERSON_FL=Y&CURRENT_ROLE_ID=0&CURRENT_USER_ID=00000&DOCUMENT_HASHCODE=&SANITY_CHECK_DOCUMENT_ID=&CONFIG_ID=1','edit_permission_pop', 550, 600); "><img src='/images/icons/edit.gif' border=0></a></TD> </tr> The PERSON_ID field in this request is constant for each user/time the table is displayed, but is not constant between instances. The ORGANIZATION_ID field changes for each row of the table, and *is* the same between instances. I would rather not parse out the HTML and then manually construct these requests - this should as much as possible be based on what the user sees, not the underlying HTML. However, if I have to that's a possibility. Thanks, Ian ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Željko Filipin Sent: Monday, May 07, 2007 9:04 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Using an ie.table.each do |row| loop when thepagein the ie window refreshes itself On 5/7/07, Ian Webb <[EMAIL PROTECTED]> wrote: I'm wondering if maybe there's a way to store the indices of the buttons it's going to click on within the array, rather than the rows themselves. I tried buttons_to_click << row[5].link(:index,1), but that doesn't work. Hi Ian, I am not sure I understood what you want to do here (I need to see html), but try changing buttons_to_click << row[5].link(:index,1) to buttons_to_click << ie.row[5].link(:index,1) Zeljko -- ZeljkoFilipin.com
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general