please have a look at the code below
b.elements.each do |i|
In the above coding “puts i.class” prints Watir::Element, but i would
like to know what element it is, like whether it’s a text box, or select
box or check box. So Can I redefine the code in such a way that it would
tell me exactly what element it is?