[Wtr-general] Error clicking a button...

Cain, Mark Mark_Cain at RL.gov
Thu Aug 31 14:18:10 EDT 2006


Here is a curious addition to my previous post.  If I put an
"$ie.show_all_objects" at the top of the test case then all the object
on the page are displayed in the output-as expected, nothing curious
here.  However, if I move the "$ie.show_all_objects" method to after
where the Non-modal windows closes then only a very small part of the
object show in the output, and then the error.

 

--Mark

 

________________________________

From: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Cain, Mark
Sent: Thursday, August 31, 2006 10:46 AM
To: wtr-general at rubyforge.org
Subject: [Wtr-general] Error clicking a button...

 

I am getting the following error when I click a 'Save' button on a page.
The application has several tabbed pages and on each is the same 'Save,
Submit, and Clear' button pattern.  The other tab pages click the save
button without error.  This error occurs after attaching and closing a
Non-modal window.  

 

NoMethodError: undefined method `all' for nil:NilClass

    C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1257:in `ole_inner_elements'

    C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1313:in
`locate_input_element'

    C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3608:in `locate'

    C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2337:in `assert_exists'

    C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2480:in `click'

    C:/watir_bonus/working/PER/tc_PERwResloution_test.rb:279:in
`test5_ca'

 

Has anyone else seen this or similar behavior?

____________________
Mark L. Cain
LMIT - E*STARS(r) ~ Lead Test Engineer 
1981 Snyder, MSIN: G3-62, Richland, WA 99354
Mark_Cain at RL.gov
509.376.5458
"640 Kilobytes of computer memory ought to be enough for anybody." -
Bill Gates, 1981 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060831/fd0cd58a/attachment-0001.html 


More information about the Wtr-general mailing list