Hi Charley, I can access a single element in the form. What i want is i should be able to access all the elements in a form with a loop . Actually i have nested forms and i m not able to access each element individually ,so i want to try n access all the elements and further do the operations . My scenario si something like this
<form> <radio button>1 <form> </form> <radio button>2 <form> </form> now i m able to access the radio button 1 but when i try to access radio button 2 i get an error saying cannot find. Please help me out . Thanks, Sayali On 4/6/07, Charley Baker <[EMAIL PROTECTED]> wrote:
Something like this: $ie.form(:name,'myform').button(:value, 'Submit').click You can take a look at the unittests for watir in form_test.rb, there are plenty of examples there. -Charley On 4/5/07, Sayali Patil <[EMAIL PROTECTED]> wrote: > Hi All, > How to access all the elements in a particular <form> ,in an html > document using watir? > Please let me know. > Thanks, > Sayali > > _______________________________________________ > Wtr-general mailing list > Wtr-general@rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general