Java loading image

6 posts, 0 answers
  1. John
    John avatar
    8 posts
    Member since:
    Jul 2012

    Posted 25 Aug 2011 Link to this post

    How would I have Telerik pause while the java pop up stating “processing please wait”?  Any thoughts?

     

    Thanks,

    John

  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 25 Aug 2011 Link to this post

    Hi John,
         are possibly to referring to Javascript? 

    Java technologies are usually integrated in a web page in the form of a Java applets:
    http://en.wikipedia.org/wiki/Java_applet
    Java applets have really gone out of style which leads me to believe you might be working with Javascript instead.

    Test Studio does not support testing of Java-based technologies. With applets we can only detect that they're there (screenshot 1) but not actually perform any verification. If you're app has a Java applet-based popup maybe it's possible to record a WaitForElementsExists on it - the way to pause the test while the “processing please wait”
    message is there is to simply wait it out. You record a WaitForElementExists (screenshot 2)  which will resume execution only when the element is no longer there and we are thus ready to continue executing.

    If you have Javascript loading screen you need to follow the same approach but it will be easier to record the necessary Verifications. It might be trick if the loading screen doesn't appear for long enough to record - then you might need to write the Verification manually in code. Please share some additional details related to this automation challenge so that we may assist you better.

    Best wishes,
    Stoich
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
  3. John
    John avatar
    8 posts
    Member since:
    Jul 2012

    Posted 25 Aug 2011 Link to this post

    My script halts when the following appears on the screen to long.  Please see screen shot it appears and when that is loaded then it goes away.

    thanks,
    John
  4. John
    John avatar
    8 posts
    Member since:
    Jul 2012

    Posted 26 Aug 2011 Link to this post

    Here is a video recording of what I see. You will see where it stops and what the screens are.  I was told the "Processing please wait.." is in java.


    thanks,
    John
  5. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 26 Aug 2011 Link to this post

    Hello John,
        that seems to be an AJAX loading animation indication an AJAX postback is occurring.

    You'll probably need a coded step in order to wait it out the way you intend to. Check out the following KB article:
    http://www.telerik.com/automated-testing-tools/support/kb/how-to-wait-for-an-ajax-postback-to-complete.aspx

    All the best,
    Stoich
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
  6. John
    John avatar
    8 posts
    Member since:
    Jul 2012

    Posted 29 Aug 2011 Link to this post

    I think I came up with a simple solution and that is to wait while object is still visible.  In this case while (visible) wait 250. 

    I hope this works as well... 

    John
Back to Top