this may help you do what you want but i personally don't thing its the right appoach
http://jarib.github.com/watir-webdriver/doc/Watir/Element.html#to_subtype-instance_method and you could just create a method that grabs all of the rows from your table and then check to see if that checks for your string in each row then have it return that row or its index I dont think that this is a good idea either. but without knowing what you really are trying to accomplish On Wed, Jul 25, 2012 at 8:01 AM, Gajendra Jain <jain.gajen...@gmail.com>wrote: > Hi, > > I have few question in Watir Webdriver > > Is there any function which returns whether the object name is a link or > button or any other type? > Ex: In Google Search page, If i pass the "Google Search" text, It should > return me as "button". > > Can I enter a value in the text field by passing the Label attached to > the text field? > > Is there any method which returns the ROW number from the specified table, > given a search string(EX: IF the search string is present in the 3 row, it > should return 3, if not 0 )? > > Regards, > Gajendra > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > watir-general@googlegroups.com > http://groups.google.com/group/watir-general > watir-general+unsubscr...@googlegroups.com > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com