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

Key: SEL-170
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Mike Williams
Votes: 0
Watchers: 0
Operations

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

make Selenium wait automatically, removing the need for the "AndWait" hint

Created: 14/Dec/05 05:15 AM   Updated: 16/Oct/06 02:07 AM
Component/s: Waiting
Affects Version/s: 0.6
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Currently Selenium requires the test-author to drop "AndWait" hints into the test, telling it when it should wait for the AUT frame to reload. This is irritating. It would be extremely useful to get Selenium to automatically detect when the browser is "busy", and suspend testing until it is "idle".

The present behaviour can also cause Selenium to hang, in situations where the executed command does not actually trigger a page reload, e.g. see http://lists.public.thoughtworks.org/pipermail/selenium-users/2005-December/001383.html

In http://lists.public.thoughtworks.org/pipermail/selenium-devel/2005-November/000916.html Bret Pettichord describes how WATIR polls the (non-standard) document.readyState property to determine when testing can proceed.

In http://lists.public.thoughtworks.org/pipermail/selenium-devel/2005-November/000904.html Mike Williams suggests that the (non-standard) onbeforeunload event can be used to detect a page unload, on IE and Firefox.


 All   Comments   Work Log   Change History      Sort Order:
Mike Williams - 26/May/06 07:32 AM
This might be helpful:

http://www.openjsan.org/src/a/au/autarch/DOM.Ready-0.14/README

Looks like it can be used to detect when the DOM for a page is complete.

harmin - 11/Jul/06 02:00 PM
I don't know whether this is a nice feature.

Once I was testing an application that contained an IFRAME that got refreshed with a botton click that triggered an AJAX query.

I couldn't use neither the click, or the clickAndWait command to manipulate the contents of such IFRAME.

I had to do

click
pause(3000) wait 3 seconds

and then I was able to access the contents of the IFRAME