History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SEL-171
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: john wilson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Selenium

wait failed on redirected page (won't wait for the redirect target page, will wake up on redirect source page).

Created: 14/Dec/05 10:47 PM   Updated: 16/Oct/06 02:07 AM
Component/s: Waiting
Affects Version/s: 0.5, 0.6
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Win 2K, firefox and IE, tomcat 5.5.9
Issue Links:
Relationship
This issue Relates to:
SEL-42 click + wait doesn't wait on meta ref... Major Open
 


 Description  « Hide
wait will fail on redirected page.
the command I used was clickAndWait.
the link will popuplate a page (PageA) which will be redirected to another page(PageB) using response.sendRedirect(in JSP).
I think the reason why it will fail is that the browser will send onload event when PageA is loaded. But we should wait for PageB's onload event for wait loop to end.

 All   Comments   Work Log   Change History      Sort Order:
john wilson - 16/Dec/05 03:38 AM
you can try it using a PageB that last for some delay (1 second).

testcase will be like this:
home has a link pointing to PageA named linkToA
home.html: <a href="PageA" id="linkToA">link</a>
PageA.jsp: <%response.sendRedirect("PageB.html");%>
PageB.html: <body>some text</body>

open home
clickAndWait linkToA
verifyTextPresent some text

David Kemp - 13/Feb/06 10:46 PM
I suspect that we will never get this working in any simple manner.
What we should be able to support is a waitForLocation, waitForTitle, waitForText, etc. any of which you could use to have Selenium wait for something that indicates that you have reached the expected page.

David Kemp - 14/Apr/06 02:11 AM
This looks very similar to Issue 42.