The next time this happens open up irb and try to call
Watir::IE.attach to the hanging browser window from there. Does this
work or does it hang from the command line as well?


On Jun 18, 11:09 am, Eric Thompson <[email protected]> wrote:
> Watir Version: 1.6.2
> Browser: IE7
>
> I have notice an issue with attaching to a browser window while that
> window is still processing a request.  This causes the browser session
> to hang indefinitely.  When registering a user account in our web app,
> the registration process sends a verification email to the email
> address provided during registration.  I open a second browser window
> to navigate to gmail to interact with the verification email and in
> this email, there is a verification link.  When I click this link, a
> third browser window is opened and it is this window that is
> exhibiting the problem.
>
> When this third window first loads, it executes some javascript that
> authenticates and redirects.  When I try to attach to this window
> while it is doing this, the browser hangs and never completes it
> process.  I have added a hard sleep of 3 seconds to the test fixture
> to wait to attach and this seems to have helped a bit but the problem
> is still intermittent (when before it failed every time).  When I run
> this process manually, it executes fine so I can only assume it is the
> call to attach() while this third browser window is still processing
> the authentication request that is causing the problem.
>
> Has anyone experienced a similar issue and if so what was your
> workaround?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to