Re: [Wtr-general] 'method_missing': document (WIN32OLERuntimeError)

2007-05-15 Thread Bret Pettichord
This issue could be affected by timing, which could explain why you are 
seeing a difference when you run from a jump drive.

Regardless of environment, I claim this issue is fixed with 1166. Please 
try it out and report back.

Bret

Daniel Kurtz wrote:
> I'm seeing this issue when I'm trying to run a script in Ruby and this
> build of Watir installed onto a jump drive. The same script runs OK on
> another computer that has the same versions installed on the hard drive.
> I was thinking it might have something to do with environment settings.
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Manish Sapariya
> Sent: Friday, April 13, 2007 02:01
> To: wtr-general@rubyforge.org
> Subject: Re: [Wtr-general] 'method_missing': document
> (WIN32OLERuntimeError)
>
> Hi,
> I am facing same problem in 1.5, not sure if its the same. I had sent
> query regarding this on list, but had no replies. It happens always when
> I do
>
> goto ("www.hotmail.com")
>
> Is there any known bug in 1.5 latest gem?
> Any directions so that I can give more inputs to debug problem.
>
> Watir Version: watir-1.5.1.1158.
>
>
> Thanks and Regards,
> Manish
>
>
> Bret Pettichord wrote:
>   
>> aidy lewis wrote:
>>   
>> 
>>> I am getting this error:
>>>
>>> 'method_missing': document (WIN32OLERuntimeError)
>>>
>>> that lies @ie.document
>>>
>>> I am using 1.4.1.
>>>
>>> Here is my code
>>>
>>> 
>>>
>>> require 'watir'
>>> include Watir
>>> require 'test\unit'
>>>
>>> $ie = Watir::IE.new
>>> def browser;$ie;end
>>>
>>> module Login
>>>   USERNAME = browser.text_field(:name, 'user_name')
>>>   PASSWORD = browser.text_field(:name, 'password')
>>>   REMEMBER_ME = browser.checkbox(:name, 'remember_me')
>>>   SIGN_IN = browser.button(:value, 'Sign in') end
>>>
>>> module Mission
>>>   LOG_OUT = browser.link(:text, /Log-out/) end
>>>
>>> class TC_Mission < Test::Unit::TestCase
>>>   include Login
>>>
>>>
>>>   def setup
>>> browser.goto('www.something.com')
>>>   
>>> 
>>>   
>> Right here add:
>>   browser.wait
>>
>> This bug is fixed in 1.5.
>>
>>   
>> 
>>> browser.bring_to_front
>>> browser.maximize
>>>   end
>>>   
>>> 
>>>   
>> ___
>> 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
>   

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] 'method_missing': document (WIN32OLERuntimeError)

2007-05-14 Thread Daniel Kurtz
I'm seeing this issue when I'm trying to run a script in Ruby and this
build of Watir installed onto a jump drive. The same script runs OK on
another computer that has the same versions installed on the hard drive.
I was thinking it might have something to do with environment settings.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manish Sapariya
Sent: Friday, April 13, 2007 02:01
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] 'method_missing': document
(WIN32OLERuntimeError)

Hi,
I am facing same problem in 1.5, not sure if its the same. I had sent
query regarding this on list, but had no replies. It happens always when
I do

goto ("www.hotmail.com")

Is there any known bug in 1.5 latest gem?
Any directions so that I can give more inputs to debug problem.

Watir Version: watir-1.5.1.1158.


Thanks and Regards,
Manish


Bret Pettichord wrote:
> aidy lewis wrote:
>   
>> I am getting this error:
>>
>> 'method_missing': document (WIN32OLERuntimeError)
>>
>> that lies @ie.document
>>
>> I am using 1.4.1.
>>
>> Here is my code
>>
>> 
>>
>> require 'watir'
>> include Watir
>> require 'test\unit'
>>
>> $ie = Watir::IE.new
>> def browser;$ie;end
>>
>> module Login
>>   USERNAME = browser.text_field(:name, 'user_name')
>>   PASSWORD = browser.text_field(:name, 'password')
>>   REMEMBER_ME = browser.checkbox(:name, 'remember_me')
>>   SIGN_IN = browser.button(:value, 'Sign in') end
>>
>> module Mission
>>   LOG_OUT = browser.link(:text, /Log-out/) end
>>
>> class TC_Mission < Test::Unit::TestCase
>>   include Login
>>
>>
>>   def setup
>> browser.goto('www.something.com')
>>   
>> 
> Right here add:
>   browser.wait
>
> This bug is fixed in 1.5.
>
>   
>> browser.bring_to_front
>> browser.maximize
>>   end
>>   
>> 
>
> ___
> 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


Re: [Wtr-general] 'method_missing': document (WIN32OLERuntimeError)

2007-04-13 Thread Charley Baker

The gem pulls it's version number from watir.rb which gets updated when it
gets checked in. The last change was to winclicker which brings the
supporting files up to version 1165 though the gem says 1164.

-Charley

On 4/13/07, Manish Sapariya <[EMAIL PROTECTED]> wrote:


Hi,
Thanks it works. :-)
However I noted that even the site says ver 1.5.1.1165,
the actual gem file is 1164. Neverthless, it works as expected.
Thanks,
Manish

Charley Baker wrote:
> Hi Manish,
>
>   Try using the latest gem on the watir site, 1165. There's a bit of a
> work around for this issue in place until we get around to a longer
> term fix. It's the same cross site scripting frame issue which has
> been discussed on this list previously.
>
> -Charley
>
> On 4/13/07, *Manish Sapariya* <[EMAIL PROTECTED]
> > wrote:
>
> Hi,
> I am facing same problem in 1.5, not sure if its the same. I had
> sent query regarding this on list, but had no replies. It happens
> always when I do
>
> goto ("www.hotmail.com ")
>
> Is there any known bug in 1.5 latest gem?
> Any directions so that I can give more inputs to debug problem.
>
> Watir Version: watir-1.5.1.1158.
>
>
> Thanks and Regards,
> Manish
>
>
> Bret Pettichord wrote:
> > aidy lewis wrote:
> >
> >> I am getting this error:
> >>
> >> 'method_missing': document (WIN32OLERuntimeError)
> >>
> >> that lies @ie.document
> >>
> >> I am using 1.4.1.
> >>
> >> Here is my code
> >>
> >> 
> >>
> >> require 'watir'
> >> include Watir
> >> require 'test\unit'
> >>
> >> $ie = Watir:: IE.new
> >> def browser;$ie;end
> >>
> >> module Login
> >>   USERNAME = browser.text_field(:name, 'user_name')
> >>   PASSWORD = browser.text_field(:name, 'password')
> >>   REMEMBER_ME = browser.checkbox(:name, 'remember_me')
> >>   SIGN_IN = browser.button(:value, 'Sign in')
> >> end
> >>
> >> module Mission
> >>   LOG_OUT = browser.link (:text, /Log-out/)
> >> end
> >>
> >> class TC_Mission < Test::Unit::TestCase
> >>   include Login
> >>
> >>
> >>   def setup
> >> browser.goto(' www.something.com ')
> >>
> >>
> > Right here add:
> >   browser.wait
> >
> > This bug is fixed in 1.5.
> >
> >
> >> browser.bring_to_front
> >> browser.maximize
> >>   end
> >>
> >>
> >
> > ___
> > 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
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* , and
is
> believed to be clean.
> 
>
> ___
> 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

___
Wtr-general mailing list
[EMAIL PROTECTED]
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] 'method_missing': document (WIN32OLERuntimeError)

2007-04-13 Thread Manish Sapariya
Hi,
Thanks it works. :-)
However I noted that even the site says ver 1.5.1.1165,
the actual gem file is 1164. Neverthless, it works as expected.
Thanks,
Manish

Charley Baker wrote:
> Hi Manish,
>
>   Try using the latest gem on the watir site, 1165. There's a bit of a 
> work around for this issue in place until we get around to a longer 
> term fix. It's the same cross site scripting frame issue which has 
> been discussed on this list previously.
>
> -Charley
>
> On 4/13/07, *Manish Sapariya* <[EMAIL PROTECTED] 
> > wrote:
>
> Hi,
> I am facing same problem in 1.5, not sure if its the same. I had
> sent query regarding this on list, but had no replies. It happens
> always when I do
>
> goto ("www.hotmail.com ")
>
> Is there any known bug in 1.5 latest gem?
> Any directions so that I can give more inputs to debug problem.
>
> Watir Version: watir-1.5.1.1158.
>
>
> Thanks and Regards,
> Manish
>
>
> Bret Pettichord wrote:
> > aidy lewis wrote:
> >
> >> I am getting this error:
> >>
> >> 'method_missing': document (WIN32OLERuntimeError)
> >>
> >> that lies @ie.document
> >>
> >> I am using 1.4.1.
> >>
> >> Here is my code
> >>
> >> 
> >>
> >> require 'watir'
> >> include Watir
> >> require 'test\unit'
> >>
> >> $ie = Watir:: IE.new
> >> def browser;$ie;end
> >>
> >> module Login
> >>   USERNAME = browser.text_field(:name, 'user_name')
> >>   PASSWORD = browser.text_field(:name, 'password')
> >>   REMEMBER_ME = browser.checkbox(:name, 'remember_me')
> >>   SIGN_IN = browser.button(:value, 'Sign in')
> >> end
> >>
> >> module Mission
> >>   LOG_OUT = browser.link (:text, /Log-out/)
> >> end
> >>
> >> class TC_Mission < Test::Unit::TestCase
> >>   include Login
> >>
> >>
> >>   def setup
> >> browser.goto(' www.something.com ')
> >>
> >>
> > Right here add:
> >   browser.wait
> >
> > This bug is fixed in 1.5.
> >
> >
> >> browser.bring_to_front
> >> browser.maximize
> >>   end
> >>
> >>
> >
> > ___
> > 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
>
>
>
> -- 
> This message has been scanned for viruses and
> dangerous content by *MailScanner* , and is
> believed to be clean.
> 
>
> ___
> 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


Re: [Wtr-general] 'method_missing': document (WIN32OLERuntimeError)

2007-04-13 Thread Charley Baker

Hi Manish,

 Try using the latest gem on the watir site, 1165. There's a bit of a work
around for this issue in place until we get around to a longer term fix.
It's the same cross site scripting frame issue which has been discussed on
this list previously.

-Charley

On 4/13/07, Manish Sapariya <[EMAIL PROTECTED]> wrote:


Hi,
I am facing same problem in 1.5, not sure if its the same. I had
sent query regarding this on list, but had no replies. It happens
always when I do

goto ("www.hotmail.com")

Is there any known bug in 1.5 latest gem?
Any directions so that I can give more inputs to debug problem.

Watir Version: watir-1.5.1.1158.


Thanks and Regards,
Manish


Bret Pettichord wrote:
> aidy lewis wrote:
>
>> I am getting this error:
>>
>> 'method_missing': document (WIN32OLERuntimeError)
>>
>> that lies @ie.document
>>
>> I am using 1.4.1.
>>
>> Here is my code
>>
>> 
>>
>> require 'watir'
>> include Watir
>> require 'test\unit'
>>
>> $ie = Watir::IE.new
>> def browser;$ie;end
>>
>> module Login
>>   USERNAME = browser.text_field(:name, 'user_name')
>>   PASSWORD = browser.text_field(:name, 'password')
>>   REMEMBER_ME = browser.checkbox(:name, 'remember_me')
>>   SIGN_IN = browser.button(:value, 'Sign in')
>> end
>>
>> module Mission
>>   LOG_OUT = browser.link(:text, /Log-out/)
>> end
>>
>> class TC_Mission < Test::Unit::TestCase
>>   include Login
>>
>>
>>   def setup
>> browser.goto('www.something.com')
>>
>>
> Right here add:
>   browser.wait
>
> This bug is fixed in 1.5.
>
>
>> browser.bring_to_front
>> browser.maximize
>>   end
>>
>>
>
> ___
> 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

___
Wtr-general mailing list
[EMAIL PROTECTED]
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] 'method_missing': document (WIN32OLERuntimeError)

2007-04-13 Thread Manish Sapariya
Hi,
I am facing same problem in 1.5, not sure if its the same. I had
sent query regarding this on list, but had no replies. It happens
always when I do

goto ("www.hotmail.com")

Is there any known bug in 1.5 latest gem?
Any directions so that I can give more inputs to debug problem.

Watir Version: watir-1.5.1.1158.


Thanks and Regards,
Manish


Bret Pettichord wrote:
> aidy lewis wrote:
>   
>> I am getting this error:
>>
>> 'method_missing': document (WIN32OLERuntimeError)
>>
>> that lies @ie.document
>>
>> I am using 1.4.1.
>>
>> Here is my code
>>
>> 
>>
>> require 'watir'
>> include Watir
>> require 'test\unit'
>>
>> $ie = Watir::IE.new
>> def browser;$ie;end
>>
>> module Login
>>   USERNAME = browser.text_field(:name, 'user_name')
>>   PASSWORD = browser.text_field(:name, 'password')
>>   REMEMBER_ME = browser.checkbox(:name, 'remember_me')
>>   SIGN_IN = browser.button(:value, 'Sign in')
>> end
>>
>> module Mission
>>   LOG_OUT = browser.link(:text, /Log-out/)
>> end
>>
>> class TC_Mission < Test::Unit::TestCase
>>   include Login
>>
>>
>>   def setup
>> browser.goto('www.something.com')
>>   
>> 
> Right here add:
>   browser.wait
>
> This bug is fixed in 1.5.
>
>   
>> browser.bring_to_front
>> browser.maximize
>>   end
>>   
>> 
>
> ___
> 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


Re: [Wtr-general] 'method_missing': document (WIN32OLERuntimeError)

2007-04-12 Thread Bret Pettichord
aidy lewis wrote:
> I am getting this error:
>
> 'method_missing': document (WIN32OLERuntimeError)
>
> that lies @ie.document
>
> I am using 1.4.1.
>
> Here is my code
>
> 
>
> require 'watir'
> include Watir
> require 'test\unit'
>
> $ie = Watir::IE.new
> def browser;$ie;end
>
> module Login
>   USERNAME = browser.text_field(:name, 'user_name')
>   PASSWORD = browser.text_field(:name, 'password')
>   REMEMBER_ME = browser.checkbox(:name, 'remember_me')
>   SIGN_IN = browser.button(:value, 'Sign in')
> end
>
> module Mission
>   LOG_OUT = browser.link(:text, /Log-out/)
> end
>
> class TC_Mission < Test::Unit::TestCase
>   include Login
>
>
>   def setup
> browser.goto('www.something.com')
>   
Right here add:
  browser.wait

This bug is fixed in 1.5.

> browser.bring_to_front
> browser.maximize
>   end
>   

___
Wtr-general mailing list
[EMAIL PROTECTED]
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] 'method_missing': document (WIN32OLERuntimeError)

2007-04-05 Thread aidy lewis
Hi,

I wonder if anyone could shed some light on this?

I am getting this error:

'method_missing': document (WIN32OLERuntimeError)

that lies @ie.document

I am using 1.4.1.

Here is my code



require 'watir'
include Watir
require 'test\unit'

$ie = Watir::IE.new
def browser;$ie;end

module Login
  USERNAME = browser.text_field(:name, 'user_name')
  PASSWORD = browser.text_field(:name, 'password')
  REMEMBER_ME = browser.checkbox(:name, 'remember_me')
  SIGN_IN = browser.button(:value, 'Sign in')
end

module Mission
  LOG_OUT = browser.link(:text, /Log-out/)
end

class TC_Mission < Test::Unit::TestCase
  include Login


  def setup
browser.goto('www.something.com')
browser.bring_to_front
browser.maximize
  end

 def teardown
   Mission::LOG_OUT.click
   browser.close
  end

  def test_1
Login::USERNAME.set('aidy')
Login::PASSWORD.set('password')
Login::REMEMBER_ME.set
#unit test assertations
assert(REMEMBER_ME.enabled?)
  end

end



Cheers

aidy
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-09-12 Thread Bret Pettichord
[EMAIL PROTECTED] wrote:
> I was using Watir for soem time now (1.4.1), but to test fully my application 
> i
> needed the modal access stuff, so i got the last SVN head, and lauch my test
> but i encouter the same error than describe in :
>
> http://www.mail-archive.com/wtr-general@rubyforge.org/msg03804.html
>
> So in watir.rb i change back the method wait to the old one (1.4.1) and it
> working fine.
>
> What was wrong with the previous one ?
In that case, the solution was to call click_no_wait instead of click. 
Does this work for you?

If not, please send us the exact error message that you are getting.

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-09-12 Thread bdoumas
I reply to myself : it's not working perfectly, some times (completly random)
i've got a
abnormal program termination
>Exit code: 3

So is there a other workaround the wait problem?

Thanks a lot,

Ben

>
> Hi All,
>
> I was using Watir for soem time now (1.4.1), but to test fully my application
> i
> needed the modal access stuff, so i got the last SVN head, and lauch my test
> but i encouter the same error than describe in :
>
> http://www.mail-archive.com/wtr-general@rubyforge.org/msg03804.html
>
> So in watir.rb i change back the method wait to the old one (1.4.1) and it
> working fine.
>
> What was wrong with the previous one ?
>
> Ben
> ___
> 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] `method_missing': document (WIN32OLERuntimeError)

2006-09-12 Thread bdoumas

Hi All,

I was using Watir for soem time now (1.4.1), but to test fully my application i
needed the modal access stuff, so i got the last SVN head, and lauch my test
but i encouter the same error than describe in :

http://www.mail-archive.com/wtr-general@rubyforge.org/msg03804.html

So in watir.rb i change back the method wait to the old one (1.4.1) and it
working fine.

What was wrong with the previous one ?

Ben
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-07-13 Thread Christian Leskowsky
Hmm... well I feel a little silly. It did work. Changed the wrong click in my script. :-(Thanks for the help Bret.On 7/13/06, Bret Pettichord <
[EMAIL PROTECTED]> wrote:
What error message does it give when you use "click_no_wait"BretOn 7/13/06, Christian Leskowsky
 < [EMAIL PROTECTED]> wrote:
Hey Bret,
Thanks for your quick response! "click_no_wait" doesn't seem to work either.On 7/13/06, Bret Pettichord
 <  [EMAIL PROTECTED]> wrote:
Can you try using a "click_no_wait" instead of "click" to submit the form and close the popup window, and tell us whether the error stops happening?Bret
On 7/13/06,  Christian Leskowsky <
  [EMAIL PROTECTED]> wrote:Hi guys,I've found a problem similar to mine that was discussed on the list in May (I've borrowed the message header). Does anybody know what happened with it? I've hit it again in my testing. Let me explain what's happening...  
My environment:Windows XP SP2ruby 1.8.4 (2005-12-24) [i386-mswin32]watir-1.5.1.1045The error:    OLE error code:80004005 in       HRESULT error code:0x80020009  
  Exception occurred.   from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1045/./watir.rb:1640:in `wait'    from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1045/./watir.rb:2401:in `click'    from   
b.rb:57What's happening in the web application:1/ A popup window with a form is created and attached to2/ assorted text fields are filled in3/ the form is submitted causing the popup window to close  
4/ ruby exits with the exception thrown aboveThanks for any help,-- -'There was an owl lived in an oak.The more he heard, the less he spoke.The less he spoke, the more he heard.'
Christian Leskowsky
  [EMAIL PROTECTED] ___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-- -'There was an owl lived in an oak.The more he heard, the less he spoke.The less he spoke, the more he heard.'
Christian Leskowsky
  [EMAIL PROTECTED]   ___Wtr-general mailing list
Wtr-general@rubyforge.org 
http://rubyforge.org/mailman/listinfo/wtr-general___Wtr-general mailing list
Wtr-general@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wtr-general
-- -'There was an owl lived in an oak.The more he heard, the less he spoke.The less he spoke, the more he heard.'Christian Leskowsky
[EMAIL PROTECTED] 
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-07-13 Thread Bret Pettichord
What error message does it give when you use "click_no_wait"BretOn 7/13/06, Christian Leskowsky <
[EMAIL PROTECTED]> wrote:Hey Bret,Thanks for your quick response!
"click_no_wait" doesn't seem to work either.On 7/13/06, Bret Pettichord <

[EMAIL PROTECTED]> wrote:
Can you try using a "click_no_wait" instead of "click" to submit the form and close the popup window, and tell us whether the error stops happening?Bret
On 7/13/06,  Christian Leskowsky <

[EMAIL PROTECTED]> wrote:Hi guys,I've found a problem similar to mine that was discussed on the list in May (I've borrowed the message header). Does anybody know what happened with it? I've hit it again in my testing. Let me explain what's happening... 
My environment:Windows XP SP2ruby 1.8.4 (2005-12-24) [i386-mswin32]watir-1.5.1.1045The error:    OLE error code:80004005 in       HRESULT error code:0x80020009 
  Exception occurred.   from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1045/./watir.rb:1640:in `wait'    from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1045/./watir.rb:2401:in `click'    from  
b.rb:57What's happening in the web application:1/ A popup window with a form is created and attached to2/ assorted text fields are filled in3/ the form is submitted causing the popup window to close 
4/ ruby exits with the exception thrown aboveThanks for any help,-- -'There was an owl lived in an oak.The more he heard, the less he spoke.The less he spoke, the more he heard.'

Christian Leskowsky

[EMAIL PROTECTED] ___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
-- -'There was an owl lived in an oak.The more he heard, the less he spoke.The less he spoke, the more he heard.'Christian Leskowsky

[EMAIL PROTECTED] 

___Wtr-general mailing listWtr-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

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-07-13 Thread Christian Leskowsky
Hey Bret,Thanks for your quick response!"click_no_wait" doesn't seem to work either.On 7/13/06, Bret Pettichord <
[EMAIL PROTECTED]> wrote:
Can you try using a "click_no_wait" instead of "click" to submit the form and close the popup window, and tell us whether the error stops happening?Bret
On 7/13/06,  Christian Leskowsky <
[EMAIL PROTECTED]> wrote:Hi guys,I've found a problem similar to mine that was discussed on the list in May (I've borrowed the message header). Does anybody know what happened with it? I've hit it again in my testing. Let me explain what's happening... 
My environment:Windows XP SP2ruby 1.8.4 (2005-12-24) [i386-mswin32]watir-1.5.1.1045The error:    OLE error code:80004005 in       HRESULT error code:0x80020009 
  Exception occurred.   from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1045/./watir.rb:1640:in `wait'    from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1045/./watir.rb:2401:in `click'    from  
b.rb:57What's happening in the web application:1/ A popup window with a form is created and attached to2/ assorted text fields are filled in3/ the form is submitted causing the popup window to close 
4/ ruby exits with the exception thrown aboveThanks for any help,-- -'There was an owl lived in an oak.The more he heard, the less he spoke.The less he spoke, the more he heard.'
Christian Leskowsky
[EMAIL PROTECTED] ___Wtr-general mailing list
Wtr-general@rubyforge.org 
http://rubyforge.org/mailman/listinfo/wtr-general___Wtr-general mailing list
Wtr-general@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wtr-general
-- -'There was an owl lived in an oak.The more he heard, the less he spoke.The less he spoke, the more he heard.'Christian Leskowsky
[EMAIL PROTECTED] 
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-07-13 Thread Bret Pettichord
Can you try using a "click_no_wait" instead of "click" to submit the form and close the popup window, and tell us whether the error stops happening?BretOn 7/13/06, 
Christian Leskowsky <[EMAIL PROTECTED]> wrote:
Hi guys,I've found a problem similar to mine that was discussed on the list in May (I've borrowed the message header). Does anybody know what happened with it? I've hit it again in my testing. Let me explain what's happening...
My environment:Windows XP SP2ruby 1.8.4 (2005-12-24) [i386-mswin32]watir-1.5.1.1045The error:    OLE error code:80004005 in       HRESULT error code:0x80020009
  Exception occurred.   from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1045/./watir.rb:1640:in `wait'    from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1045/./watir.rb:2401:in `click'    from 
b.rb:57What's happening in the web application:1/ A popup window with a form is created and attached to2/ assorted text fields are filled in3/ the form is submitted causing the popup window to close
4/ ruby exits with the exception thrown aboveThanks for any help,-- -'There was an owl lived in an oak.The more he heard, the less he spoke.The less he spoke, the more he heard.'

Christian Leskowsky[EMAIL PROTECTED]


___Wtr-general mailing listWtr-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] `method_missing': document (WIN32OLERuntimeError)

2006-07-13 Thread Christian Leskowsky
Hi guys,I've found a problem similar to mine that was discussed on the list in May (I've borrowed the message header). Does anybody know what happened with it? I've hit it again in my testing. Let me explain what's happening...
My environment:Windows XP SP2ruby 1.8.4 (2005-12-24) [i386-mswin32]watir-1.5.1.1045The error:    OLE error code:80004005 in       HRESULT error code:0x80020009
  Exception occurred.   from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1045/./watir.rb:1640:in `wait'    from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1045/./watir.rb:2401:in `click'    from 
b.rb:57What's happening in the web application:1/ A popup window with a form is created and attached to2/ assorted text fields are filled in3/ the form is submitted causing the popup window to close
4/ ruby exits with the exception thrown aboveThanks for any help,-- -'There was an owl lived in an oak.The more he heard, the less he spoke.The less he spoke, the more he heard.'
Christian Leskowsky[EMAIL PROTECTED]
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-06-01 Thread Bret Pettichord
Please send HTML page and code.On 5/24/06, Manish Sapariya <[EMAIL PROTECTED]> wrote:
Is this one known?I searched through the archive and could not find anything similar to this.I saw this only first time, and I am not sure whether I will see thisagain with the same script.Please let me know if HTML page or code will help isolate this problem.
Thanks and Regards,Manishc:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:2447:in`method_missing': document(WIN32OLERuntimeError)OLE error code:80070005 in 
  Access is denied.HRESULT error code:0x80020009  Exception occurred.from c:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:2447:in`document'from c:/program
files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1059:in`check_for_http_error'from c:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:205from c:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-
1.5.0.1005/./watir.rb:203:in `upto'from c:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:203from c:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:201:in `call'
from c:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1558:in`run_error_checks'from c:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1557:in `each'
 ... 6 levels...from riGuardSelfTest_2_2_1.rb:374:in `CreateAndScheduleFTPSearch'from riGuardSelfTest_2_2_1.rb:371:in `each'from riGuardSelfTest_2_2_1.rb:371:in `CreateAndScheduleFTPSearch'
from riGuardSelfTest_2_2_1.rb:759___Wtr-general mailing listWtr-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

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-05-24 Thread Bret Pettichord
On 5/24/06, David Schmidt <[EMAIL PROTECTED]> wrote:

> The reason for my concern is that this error is in> check_for_http_error. This method isn't called until after all the> wait checks are complete and Watir thinks that the page is already> fully loaded. So that means that there is a bug in the core wait code.
Not necessarily.  I have pages in my web scraper that load and thenimmediately run code to load a *different* page, just like a redirect.Yes, this is ugly and not great web design, but it is being done.  If

Watir is still checking return codes on the first page while IE startsthe process to load the NEXT page then the COM document method may notbe valid when we're still trying to check the results of the first page

load.My understanding is that Watir will wait in this situation. It is designed to do this. Are you saying it doesn't? Can you give us an example? 

I suspect that this isn't a common occurrence, which is why it hasn'tshown up frequently in the past.  Without actually knowing details from the OP, how can you make this assumption? What questions would you need to ask in order to confirm this suspicion?
 In addition, wasn't the code to checkthe status of loaded frames added only recently?  
Not at all. It's been in there a long time. It is in 1.4.1. Please take a look at the history of the code (which is all in SVN) instead of making assumptions about it. Bret

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-05-24 Thread David Schmidt
Bret Pettichord wrote:
> On 5/24/06, *David Schmidt* <[EMAIL PROTECTED] 
> > wrote:
>
> This is the same problem that was occurring in wait().  The COM object
> document method is called when the document method isn't available.
> I've seen this if a page or frame immediately kicks off a new page
> load
> before all the wait checks are complete or perhaps if the check is
> called before the page/frame is completely ready.
>
>
> The reason for my concern is that this error is in 
> check_for_http_error. This method isn't called until after all the 
> wait checks are complete and Watir thinks that the page is already 
> fully loaded. So that means that there is a bug in the core wait code.
Not necessarily.  I have pages in my web scraper that load and then 
immediately run code to load a *different* page, just like a redirect.  
Yes, this is ugly and not great web design, but it is being done.  If 
Watir is still checking return codes on the first page while IE starts 
the process to load the NEXT page then the COM document method may not 
be valid when we're still trying to check the results of the first page 
load.
>  
>
> Fix would similar to the one in wait where you make sure a document is
> available:
>
> (from IE#wait)
>   until suppress_ole_error [EMAIL PROTECTED] do
> sleep 0.02; s.spin
>   end
>
>
> The problem with this is that it would only suppress the symptom 
> without addressing the cause, and the same problem could just as 
> easily arise somewhere else. Do we wrap guards around every call in 
> Watir to @ ie.document and every other COM call we ever make? That 
> would only make errors nearly impossible to diagnose. Do we need to 
> add more wait checks to the core wait logic? Why haven't we seen the 
> problem before?
I suspect that this isn't a common occurrence, which is why it hasn't 
shown up frequently in the past.  In addition, wasn't the code to check 
the status of loaded frames added only recently?  That could cause this 
to show up more frequently if the base page or a previous frame triggers 
a new page load.

I don't see what we can do but abort the checks and perhaps start 
checking all pages (base IE and frames) again, because we can't continue 
checking "old" pages if they're no longer there.  This is why I 
recommended placing the frames.each inside the begin/rescue block for 
WIN32OLE errors in IE#wait, because we may have a different number of 
frames if a new page load is triggered while Watir is in IE#wait.

Since calls to check_for_http_error would normally only occur when we're 
expecting a new page then I think we should just let the WIN32OLE 
exception filter to up the method calling check_for_http_error and then 
make sure those spots handle the exception as appropriate.  In IE#wait I 
would propose we assume that we are seeing a new page load and re-start 
the entire wait, re-checking the base IE document and all the sub-frames.
> This is the reason for my puzzlement. If there is really a flaw in the 
> wait logic i suspect we'll be seeing problems elsewhere. Is this a new 
> problem cause by the recent rearrangement of the wait code that i 
> thought would have no impact? Is this a problem that was previously 
> masked by other bugs and is only now showing up because we've added 
> guards to other places (where they reasonably belong)? Have i missed 
> something serious in my analysis of this area?
>
> We don't really have unit tests for this code, and it has always made 
> me the most nervous. These problems all show up as race conditions. 
> And yet the ability of Watir to have reliable synchronization has been 
> absolutely key to its success. So we have to get this right.
I'm not sure there is a way to determine for sure if the page has been 
reloaded or not.  The title and url may not change, and the COM object 
doesn't change either.  We can restart the error checks and make sure 
any NEW page has completed successfully, but we just may not be able to 
detect a new page load while we're checking the status of the first page.
> Bret

BTW, since there can be framesets within an existing frame the code in 
IE#wait should really check each found frame to see if there are 
additional frames being loaded from within that frame.  I have some 
sites where I see 3 levels of frames 
(@ie.frame(x,x).frame(x,x).frame(x,x).element).

David

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-05-24 Thread Bret Pettichord
On 5/24/06, David Schmidt <[EMAIL PROTECTED]> wrote:
This is the same problem that was occurring in wait().  The COM objectdocument method is called when the document method isn't available.I've seen this if a page or frame immediately kicks off a new page loadbefore all the wait checks are complete or perhaps if the check is
called before the page/frame is completely ready.The reason for my concern is that this error is in check_for_http_error. This method isn't called until after all the wait checks are complete and Watir thinks that the page is already fully loaded. So that means that there is a bug in the core wait code.
 Fix would similar to the one in wait where you make sure a document isavailable:
(from IE#wait)  until suppress_ole_error [EMAIL PROTECTED] dosleep 0.02; s.spin  endThe problem with this is that it would only suppress the symptom without addressing the cause, and the same problem could just as easily arise somewhere else. Do we wrap guards around every call in Watir to @
ie.document and every other COM call we ever make? That would only make errors nearly impossible to diagnose. Do we need to add more wait checks to the core wait logic? Why haven't we seen the problem before?This is the reason for my puzzlement. If there is really a flaw in the wait logic i suspect we'll be seeing problems elsewhere. Is this a new problem cause by the recent rearrangement of the wait code that i thought would have no impact? Is this a problem that was previously masked by other bugs and is only now showing up because we've added guards to other places (where they reasonably belong)? Have i missed something serious in my analysis of this area?
We don't really have unit tests for this code, and it has always made me the most nervous. These problems all show up as race conditions. And yet the ability of Watir to have reliable synchronization has been absolutely key to its success. So we have to get this right.
Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-05-24 Thread David Schmidt
Bret,

This is the same problem that was occurring in wait().  The COM object 
document method is called when the document method isn't available.  
I've seen this if a page or frame immediately kicks off a new page load 
before all the wait checks are complete or perhaps if the check is 
called before the page/frame is completely ready.

Fix would similar to the one in wait where you make sure a document is 
available:

(from IE#wait)
  until suppress_ole_error [EMAIL PROTECTED] do
sleep 0.02; s.spin
  end

David

Bret Pettichord wrote:
> This looks like a new problem, although related to problems we've seen 
> before (and mostly fixed). I'm puzzled how it could happen -- but i'm 
> not sure what information to ask for.
>
> Bret
>
> On 5/24/06, *Manish Sapariya* <[EMAIL PROTECTED] 
> > wrote:
>
> Is this one known?
> I searched through the archive and could not find anything similar
> to this.
> I saw this only first time, and I am not sure whether I will see this
> again with the same script.
> Please let me know if HTML page or code will help isolate this
> problem.
>
> Thanks and Regards,
> Manish
>
>
> c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:2447:in
> `method_missing': document
> (WIN32OLERuntimeError)
> OLE error code:80070005 in 
>   Access is denied.
>
>
> HRESULT error code:0x80020009
>   Exception occurred.from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:2447:in
> `document'
> from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1059:in
> `check_for_http_error'
> from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:205
> from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-
> 1.5.0.1005/./watir.rb:203:in `upto'
> from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:203
> from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:201:in
> `call'
> from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1558:in
> `run_error_checks'
> from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1557:in
> `each'
>  ... 6 levels...
> from riGuardSelfTest_2_2_1.rb:374:in `CreateAndScheduleFTPSearch'
> from riGuardSelfTest_2_2_1.rb:371:in `each'
> from riGuardSelfTest_2_2_1.rb:371:in `CreateAndScheduleFTPSearch'
> from riGuardSelfTest_2_2_1.rb:759
>


___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-05-24 Thread Bret Pettichord
This looks like a new problem, although related to problems we've seen before (and mostly fixed). I'm puzzled how it could happen -- but i'm not sure what information to ask for.Bret
On 5/24/06, Manish Sapariya <[EMAIL PROTECTED]> wrote:
Is this one known?I searched through the archive and could not find anything similar to this.I saw this only first time, and I am not sure whether I will see thisagain with the same script.Please let me know if HTML page or code will help isolate this problem.
Thanks and Regards,Manishc:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:2447:in`method_missing': document(WIN32OLERuntimeError)OLE error code:80070005 in 
  Access is denied.HRESULT error code:0x80020009  Exception occurred.from c:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:2447:in`document'from c:/program
files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1059:in`check_for_http_error'from c:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:205from c:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-
1.5.0.1005/./watir.rb:203:in `upto'from c:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:203from c:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:201:in `call'
from c:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1558:in`run_error_checks'from c:/programfiles/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1557:in `each'
 ... 6 levels...from riGuardSelfTest_2_2_1.rb:374:in `CreateAndScheduleFTPSearch'from riGuardSelfTest_2_2_1.rb:371:in `each'from riGuardSelfTest_2_2_1.rb:371:in `CreateAndScheduleFTPSearch'
from riGuardSelfTest_2_2_1.rb:759___Wtr-general mailing listWtr-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] `method_missing': document (WIN32OLERuntimeError)

2006-05-24 Thread Manish Sapariya
Is this one known?
I searched through the archive and could not find anything similar to this.
I saw this only first time, and I am not sure whether I will see this
again with the same script.
Please let me know if HTML page or code will help isolate this problem.

Thanks and Regards,
Manish


c:/program 
files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:2447:in 
`method_missing': document
(WIN32OLERuntimeError)
OLE error code:80070005 in 
  Access is denied.


HRESULT error code:0x80020009
  Exception occurred.from c:/program 
files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:2447:in 
`document'
from c:/program 
files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1059:in 
`check_for_http_error'
from c:/program 
files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:205
from c:/program 
files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:203:in `upto'
from c:/program 
files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:203
from c:/program 
files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:201:in `call'
from c:/program 
files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1558:in 
`run_error_checks'
from c:/program 
files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1557:in `each'
 ... 6 levels...
from riGuardSelfTest_2_2_1.rb:374:in `CreateAndScheduleFTPSearch'
from riGuardSelfTest_2_2_1.rb:371:in `each'
from riGuardSelfTest_2_2_1.rb:371:in `CreateAndScheduleFTPSearch'
from riGuardSelfTest_2_2_1.rb:759
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general