Menu

#156 An option to extend waitForBackgroundJavaScript or pause

open
nobody
None
5
2012-10-21
2009-10-28
Hieu Dinh
No

When deploying a large multi-frame GWT website locally, the WebClient.waitForBackgroundJavaScript() appears to only wait for the script on the main frame. If there is a small java based loading screen leading to the actual content, there is not much of a wait time. Assertions and Xpath searches on the main java content will fail afterward since the load time was not appropriate for the rest of the scripts.

Sleeping and waiting for this case does not always work, so could there possibly be an overall pause function for HtmlUnit to be put on hold until the page fully loads?

Discussion

  • Hieu Dinh

    Hieu Dinh - 2009-10-28
     
  • Hieu Dinh

    Hieu Dinh - 2009-10-28

    Sorry, didn't mean to add the random eclipse.exe file.

     
  • Marc Guillemot

    Marc Guillemot - 2009-10-29

    waitForBackgroundJavaScript waits for JS on all windows (including frames)... or at least this is the purpose. We know that it doesn't always work as we aren't currently able to use it for all our library tests.

    Can you provide a test case allowing us to know when we have fixed it?

     
  • Hieu Dinh

    Hieu Dinh - 2009-10-30

    I'm not too sure about the structure of it myself, but if I do pinpoint the problem, I will definitely upload a test.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.