[ 
http://jira.openqa.org/browse/WTR-446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20442#action_20442
 ] 

Jarmo Pertman commented on WTR-446:
-----------------------------------

It seems to me that this particular fix has been removed from Watir code. You 
may achieve the desired effect though by modifying READYSTATES constant. 
Something like this might work:

require "watir"
Watir::IE::READYSTATES[:interactive] = 3
browser = Watir::Browser.new

> Watir::IE#wait doesn't finish at certain circumstances
> ------------------------------------------------------
>
>                 Key: WTR-446
>                 URL: http://jira.openqa.org/browse/WTR-446
>             Project: Watir
>          Issue Type: Bug
>          Components: Wait
>    Affects Versions: 1.6.5
>         Environment: All environments.
>            Reporter: Jarmo Pertman
>            Priority: Major
>
> Watir::IE#wait method won't finish if:
> 1) Go to some page with the browser - readystate will be READYSTATE_COMPLETE 
> (4)
> 1) Open file save as dialog from the browser
> 2) Either save the file or close the dialog
> 3) For some reason readystate is READYSTATE_INTERACTIVE (3)
> Now, if you want to do something with Watir, which issues Watir::IE#wait, 
> then it will block forever.
> My suggestion would be to also allow READYSTATE_INTERACTIVE.
> Get the fix from 
> http://github.com/jarmo/watir/commit/7df8932946462f9284c63ca045b4fefe76a222d6

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Wtr-development mailing list
Wtr-development@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to