[
http://jira.openqa.org/browse/WTR-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Charley Baker updated WTR-249:
------------------------------
Fix Version/s: (was: 1.6.7)
Soon
> Error in Wait Logic [FireWatir]
> -------------------------------
>
> Key: WTR-249
> URL: http://jira.openqa.org/browse/WTR-249
> Project: Watir
> Issue Type: Bug
> Components: FireWatir
> Reporter: Bret Pettichord
> Priority: Major
> Fix For: Soon
>
>
> -------- Original Message --------
> Subject: wait() and http redirects
> Date: Fri, 22 Aug 2008 08:46:35 -0700 (PDT)
> From: Cam McHugh <[email protected]>
> Reply-To: [email protected]
> To: FireWatir <[email protected]>
> I'm having a problem with a firewatir script that is used to test some
> functionality on an page requiring authentication. The authentication
> process involves an http redirect (or two) to the auth server and
> another redirect back to the desired url after successful
> authentication. However, the code being executed after
> goto(authenticated_url) is being executed prior to the authentication
> process completing. I think the problem is in the wait() function,
> specifically this test:
> while isLoadingDocument != "false"
> isLoadingDocument =
> js_eval("#{BROWSER_VAR}=#{WINDOW_VAR}.getBrowser();
> #{BROWSER_VAR}.webProgress.isLoadingDocument;")
> #puts "Is browser still loading page:
> #{isLoadingDocument}"
> ...
> end
> Does the isLoadingDocument logic take http redirects into
> consideration? It seems to evaluate to false in a rather
> nondeterministic manner during the redirection process (I "puts'd" the
> current url along with the current value of isLoadingDocument),
> sometimes waiting until the desired page is loaded, but sometimes
> evaluating to false while the browser is still being redirected.
> I see code in wait() to account for meta refresh style redirection, so
> I'd assume that isLoadingDocument is intended to remain true when the
> server response is 301/302, but my results seem to contradict this.
> Can anyone shed some light on this for me, and if there's a workaround
> that can be used?
> Thanks,
> Cam
--
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
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development