On Wed, Jul 25, 2012 at 2:01 PM, Gajendra Jain <[email protected]> wrote: > Is there any function which returns whether the object name is a link or button or any other type?
Something like this could work (not tested) browser.element(:text => "some text").class > Can I enter a value in the text field by passing the Label attached to the text field? Depends. If both label and the text field have the same parent, something like this could work: browser.label(:value => "some-value").parent.text_filed.set "some text" > 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 )? Something like this: browser.rows.each_with_index do |row, index| p index if row.text.match /some text/ end Željko -- filipin.eu -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
