you can do it like this ( search the list if this doesnt work 'cos Im doing it 
by memory and I answered the same question a couple months back )

try this
link(:index,1).ole_object.invoke('custom')

Paul


  ----- Original Message ----- 
  From: Andrew Kuzmin 
  To: [email protected] 
  Sent: Wednesday, May 09, 2007 4:55 PM
  Subject: [Wtr-general] Using custom attributes


  Hi All,

   

  Is there any way to access an element by a custom attributes value ?

   

  In my situation, for our web development we're using 3-rd party grid control, 
which generates a table with lot of custom attributes for its elements.  For 
example,  the code would look like this:  <tr rowKey=12345><td column=column1>.

  Since the rowKey is unique it could be used to uniquly identify the row.

   

  IE's devTool displays these custom attributes correctly, however they are not 
accessible from Watir.

   

  Any recommendations ? Could Watir be extended to do this ?

   

  Thanks,

  Andrew



------------------------------------------------------------------------------


  _______________________________________________
  Wtr-general mailing list
  [email protected]
  http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to