Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Ethan
There is good documentation (including examples) to be found. http://www.google.com/cse?cx=007267089725385613265:gmydx5gtw6u&q=frame On Thu, Aug 12, 2010 at 19:34, Chan Nguyen wrote: > Hi Ethan, > > Can you show me an example, I saw a Frame in Firebug. I couldn't copy the > whole HTML when viewi

Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Chan Nguyen
Hi Ethan, Can you show me an example, I saw a Frame in Firebug. I couldn't copy the whole HTML when viewing with FB, so weird. And those checkboxes are nested into 2 more tables :(. How can I deal with these kind of situations ? On Thu, Aug 12, 2010 at 3:47 PM, Ethan wrote: > deep nesting wit

Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Ethan
deep nesting with most elements is no issue, but there is some mention of a frame there. if it's inside a frame, then you'll need to access the frame first, then the checkbox in the frame. On Thu, Aug 12, 2010 at 18:42, Chan Nguyen wrote: > This is what I copied when using TestWise Recorder : >

Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Chan Nguyen
This is what I copied when using TestWise Recorder : # can't yet handle followFrame browser.checkbox(:id, "cblModules_0").clear browser.checkbox(:id, "cblModules_1").clear browser.checkbox(:id, "cblModules_2").clear browser.checkbox(:id, "cblModules_3").clear I think the reason that it failed beca

Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Chan Nguyen
Hi Arihan, Yes, I checked the id name carefully. I don't really know why it failed, too obvious to be right :( Thanks, On Thu, Aug 12, 2010 at 3:04 PM, arihan sinha wrote: > Have you given the correct id name? > > it seems from html code the id is *cblModules_2* but you have used i* > cblModules_

Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread arihan sinha
Have you given the correct id name? it seems from html code the id is *cblModules_2* but you have used i* cblModules_0* On Thu, Aug 12, 2010 at 10:15 PM, Chan Nguyen wrote: > Hi everyone, > I followed a very simple example in Watir tutorial website > http://wiki.openqa.org/display/WTR/Checkboxe

Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Brendan Grainger
Is it just me or is the id you're looking for wrong: > browser.checkbox( :id, 'icblModules_0' ).clear should be > browser.checkbox( :id, 'cblModules_2' ).clear if you're trying to check the checkbox you have listed there. On Aug 12, 2010, at 5:15 PM, Chan Nguyen wrote: > Hi everyone, > I fo

[wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Chan Nguyen
Hi everyone, I followed a very simple example in Watir tutorial website http://wiki.openqa.org/display/WTR/Checkboxes. Here is the element HTML code: Then I tried browser.checkbox( :id, 'icblModules_0' ).clear but the compiler keeps complaining : C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/