Hello guys,

Since a month, I have been trying to automate my tasks using Ruby/Watir. I work on web application. I have been able to automate the testing for 1 of the screens. What I am trying to do now is trying is somehow loop through the form elements so that the script itself will determine what kind of form element it is, (button, textfield etc) and do some task accordingly. Can anyone help me out on this?

Thanks in advance
Deepak