[wtr-general] clicking ok on popups

2009-08-04 Thread rs77
I am new to Watir 1. I have an HTML page with fields, 2. When I click Proceed button 3. I get 2 consecutive alert popups with OK button 4. after clicking 'OK' on both of them another IE browser window pops up 5. with another alert popup, which I click OK 6. Click Save button on the newly opened

[wtr-general] Re: trying to access onclick property in a td using xpath

2009-09-08 Thread rs77
The errror is 'NoMethodError: undefined method `element' for #Watir::IE:0x2e65760 D:/Installers/watir/experimenting/JMP_CreateBranch.rb:52:in `test_TCrecorded' On Sep 8, 3:43 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Sep 8, 2009 at 12:34 PM, rs77 rishaind...@gmail.com

[wtr-general] Re: trying to access onclick property in a td using xpath

2009-09-08 Thread rs77
: On Tue, Sep 8, 2009 at 12:48 PM, rs77 rishaind...@gmail.com wrote: 'NoMethodError: undefined method `element' You have this code: ie.element And the error says `undefined method `element'`. That means method `element` is not defined for object that variable `ie` points to. Where did you get

[wtr-general] Re: trying to access onclick property in a td using xpath

2009-09-08 Thread rs77
still no luck :( 1) Error: test_TCrecorded(TCrecorded): NoMethodError: undefined method `element_by_xpath' for #Watir::Frame: 0x2e55054 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb: 324:in `locate' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:

[wtr-general] Re: trying to access onclick property in a td using xpath

2009-09-08 Thread rs77
And Branches)]).click - Angrez On Tue, Sep 8, 2009 at 5:03 PM, rs77 rishaind...@gmail.com wrote: still no luck :(  1) Error: test_TCrecorded(TCrecorded): NoMethodError: undefined method `element_by_xpath' for #Watir::Frame: 0x2e55054    C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir

[wtr-general] Re: trying to access onclick property in a td using xpath

2009-09-08 Thread rs77
...@gmail.com wrote: can you post the full html over here? Is this cell inside the frame? On Tue, Sep 8, 2009 at 5:55 PM, rs77 rishaind...@gmail.com wrote: these dont seem to work either **  Using ie.cell(:text, /Areas And Branches/).click

[wtr-general] Re: trying to access onclick property in a td using xpath

2009-09-08 Thread rs77
yes , its in a frame toc the whole page has 3 frames top frame toc frame - sidemenu.htm (where Areas and Branches is a cell) and content frame...which has further htm pages. On Sep 8, 6:38 pm, Angrez Singh ang...@gmail.com wrote: Is this cell is inside a frame? 2009/9/8 rs77 rishaind

[wtr-general] Re: trying to access onclick property in a td using xpath

2009-09-08 Thread rs77
:in `fr ame' On Sep 8, 8:25 pm, Angrez Singh ang...@gmail.com wrote: try ie.frame(:name, [frame name]).cell(:text, /Areas/).click - Angrez On Tue, Sep 8, 2009 at 7:17 PM, rs77 rishaind...@gmail.com wrote: yes , its in a frame toc the whole page has 3 frames top frame toc frame

[wtr-general] Re: trying to access onclick property in a td using xpath

2009-09-09 Thread rs77
this worked now... i used syntax ie.frame(:name, 'toc').cell(:text, 'Areas And Branches').click :) thanks for your help..the initial barrier is overnow to the next level. On Sep 9, 10:33 am, rs77 rishaind...@gmail.com wrote: now this is getting really weird. I do a show_frames