Thanks so much to the above 2. Looks like that is working for me now!
Simpler than I thought too.

On Nov 19, 5:22 pm, Ethan <notet...@gmail.com> wrote:
> you don't really need to loop there, you should just be able to do
>
> my_table.row(:text, /7E\.01\.73\.6D\.40\.50\.CE\.D5/).link(:text,
> 'Delete').click
>
> On Thu, Nov 19, 2009 at 17:12, Tiffany Fodor <tcfo...@comcast.net> wrote:
>
> > Oops - sorry about that!  I forgot that tab takes you out of the text
> > edit box.
>
> > Here's the code I was trying to give you:
>
> > If the text below is contained in a table, you can do this:
>
> > my_table = browser.table(:id, 'table_id')
>
> > my_table.rows.each do |row|
> >   if row.text.include?('7E.01.73.6D.40.50.CE.D5')
> >    row.link(:text, 'Delete').click
> >  end
> > end
>
> > Hope this helps!
>
> > -Tiffany
>
> > On Nov 19, 2:53 pm, xguarder <shams...@gmail.com> wrote:
> > > Hi, I have the following on my page...
>
> > > 8068    7E.01.73.6D.40.50.CE.D5         Recorded: 10/29/09
> >  Delete
> > > 8067    7E.01.73.6D.40.4F.CE.CE         Recorded: 10/29/09
> >  Delete
> > > 8065    7E.01.73.6D.40.4E.CE.C7         Recorded: 10/29/09
> >  Delete
>
> > > All the "Delete's" above are links. All have the same href (and text
> > > obviously). My question is, using FireWatir, what would be the best
> > > way to hone in a specific item to delete? I am particularly interested
> > > in a scenario where I know ahead of time which entry to delete based
> > > on the code in the 2nd column, then selecting the delete link that
> > > follows that text entry.
>
> > > Also, while I'm at it, I would like to be able to retrieve any other
> > > surrounding column of text too, such as the recorded date timestamp in
> > > the 3rd column above.
>
> > > Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
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