Manish, It's a bit hard to tell exactly what's occurring without seeing the HTML or the Watir script involved, but I've seen this type of error before. It's a COM error trying to send a command to IE, and from the trace I'd guess it was a "wait" command. Since it was right after a click I'm guessing that perhaps the wait executed at a time when the object state wasn't stable.
Could you give us an idea what you were clicking? Was it in a frame or in a popup or just a normal web page? I'm also not sure what you mean by "defaulting function" below. Could you explain in more detail what changes you make betwen this working and not working? David Manish Sapariya wrote: > I get following error when I run my script. However when I run script with > the defaulting function alone, it works fine. > Any ideas? Has anyone run into this kind of issue. > Please let me know if you need more details to help. > > ------------------- > W, [19-May-2005 16:15:24#3268] WARN -- : frame error in waitreadyState > OLE error code:0 in <Unknown> > <No Description> > HRESULT error code:0x80070005 > Access is denied. > c:/program > files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.980/./watir.rb:1518:in > `method_missing' > c:/program > files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.980/./watir.rb:1518:in `wait' > c:/program > files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.980/./watir.rb:1517:in `upto' > c:/program > files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.980/./watir.rb:1517:in `wait' > c:/program > files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.980/./watir.rb:293:in `wait' > c:/program > files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.980/./watir.rb:2302:in `click' > iManager.rb:151:in `CreateImageSearch' > iManager.rb:346:in `CreateAndScheduleImageSearch' > iManager.rb:343:in `each' > iManager.rb:343:in `CreateAndScheduleImageSearch' > iManager.rb:750 > c:/program > files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.980/./watir.rb:2156:in > `assert_exists': Unable to locate object, using text and Images > (Watir::Exception::UnknownObjectException) > from c:/program > files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.980/./watir.rb:2297:in `click' > from iManager.rb:152:in `CreateImageSearch' > from iManager.rb:346:in `CreateAndScheduleImageSearch' > from iManager.rb:343:in `each' > from iManager.rb:343:in `CreateAndScheduleImageSearch' > from iManager.rb:750 > >Exit code: 1 > ------------------------ > > Thanks and Regards, > Manish > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
