Hi Can you try the below mentioned skeleton

@browser.element.table(:class,"CHOOSEONE").trs.each do |p|

          if p.text == "Specific text"

                       var = p.text

         else


                      puts "specified text is not present"


         end

end

                   if var ==  "Specific text"

                      puts "true"

                  else

                       puts "false"

                  end


It is used to loop all the ROWS in the specified table and check for the
particular string and store it in a variable "var".


-- 
Regards,
Velurajprabhu.B

-- 
-- 
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.

Reply via email to