Saturday, September 25, 2010

How to slow down JavaScript execution (in Firefox)?

Hi all,

I'm trying to run integration tests and one of the things I'm trying
to test is that various status messages are displayed in the right
order. The problem is that everything runs so fast that certain
messages are not displayed long enough for Selenium to pick up. :-)
That makes the test fail because it thinks steps were skipped. Another
example is disabling a button after clicking on it and enabling it
after some action has been executed. Again, JavaScript runs so fast
that the disabling of the button is never noticed by Selenium.

Does anyone know of a way to slow down JavaScript execution? I'm using
Firefox for the integration tests so feel free to list Firefox
specific solutions.

Cheers,
Hilco

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment