Get all elements with *.elements* method (for example) which will give you an Array of those elements you want to have. Then just use .*first* method
[Element1, Element2, Element3].first => Element1 El jueves, 22 de enero de 2015, 18:22:32 (UTC-3), praneetha pagidimarri escribió: > > Hi, > > Can any one give an idea on; i have a list of options to filter as active > , inactive and so on.. > When i do filter on active, i get all the records which are in active > state and i want to select the very first record in active state. > -- -- 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] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
