Idenyifying hidden elements

Hi ,
    I'm new bie to Ruby and watir . I wanna perform a button click
operation which is in the form . Here , web page is a dynamic page .
After clicking the button in form once , the form will get hidden and
new form similar to previous one will apear .Now ., i'm getting trouble
.

If I perform the same button click operation (same code in 2 time inside
loop ), click ing is performed on the hidden form and not on the visible
form . How to perform this button click operation on visible form ?

Help me out plz...

···

--
Posted via http://www.ruby-forum.com/.