[wtr-general] Re: Cannot get truncated text of a cell in a table

2009-10-21 Thread Željko Filipin
On Mon, Oct 19, 2009 at 11:48 PM, Shlomit Gazit wrote: > When I am trying to locate the cell for .link, What are you trying to do? Click all links in the table? This will flash all links, you can work from there: browser.table(:class, "tableLeftNav").links.each {|link| link.flash} Željko --~--

[wtr-general] Re: Cannot get truncated text of a cell in a table

2009-10-20 Thread George
Hi there, I think this might work for you: puts @@leftNav.rstrip! This should remove the "\r\n" tags. -George On Oct 20, 9:18 am, Shlomit Gazit wrote: > watir code: (see above also): > >  $ie.link(:text, "#{@@leftNav[i]}").click > > html of the table: > > > >         valign="middle" cla

[wtr-general] Re: Cannot get truncated text of a cell in a table

2009-10-20 Thread Shlomit Gazit
watir code: (see above also): $ie.link(:text, "#{@@leftNav[i]}").click html of the table: Scope (0)

[wtr-general] Re: Cannot get truncated text of a cell in a table

2009-10-20 Thread Željko Filipin
On Mon, Oct 19, 2009 at 11:48 PM, Shlomit Gazit wrote: > Watir::Exception::UnknownObjectException: Unable to locate element, > using :text, "Scope (0) \r\n" Please post html of the table and Watir code that returns this error. > I dont know why it is appending: \r\n, and how to truncate it. Bec