Results 1 to 2 of 2

Thread: Timeout waiting for animations to be complete

  1. #1
    Sencha User
    Join Date
    Mar 2017
    Posts
    38
    Vote Rating
    1
      0  

    Default Timeout waiting for animations to be complete

    WebDriver scenario
    ST 2.2.1.13

    I'm relying on a toast message being hidden before proceeding to the next step in my test case. My test continues to fail with the following error:
    Timeout waiting for animations to be complete for ST.future.Component with target toast


    I've added explicit timeout values with no luck

    Code:
    //Allow 10 second timeout for actions to complete    beforeAll(function() {
            ST.options.timeout = 10000;
        });

    The toast message I'm inspecting and waiting for it to be hidden

    Code:
    ST.component('toast')               
     .textLike(/The user was saved successfully/)
                    .hidden();

  2. #2
    Sencha - Sales Team daniel.gallo's Avatar
    Join Date
    Apr 2009
    Location
    Redwood City, CA
    Posts
    287
    Answers
    39
    Vote Rating
    35
      0  

    Default

    It seems that this one is a little more difficult to test, as the Toast gets destroyed when it's finished with, so the element no longer exists on the page. It is unable to validate whether the Toast is hidden as it's destroyed and then there is a stale element reference. There is a ".destroyed()" Sencha Test API, but we have an open issue for that at the moment when used within WebDriver scenarios.

    For now, if you need to halt tests until the Toast disappears, I would suggest waiting the time it takes for the toast to be removed, which by default on Classic is 3.0 seconds, plus the 0.5 seconds ease-in, and 0.5 seconds ease-out animations, so a total of 4 seconds:

    Code:
    ST.component('toast')
        .textLike(/The user was saved successfully/)
        .wait(4000);
    Daniel Gallo
    Senior Solutions Architect
    Sencha Inc.

Similar Threads

  1. Timeout waiting for animations
    By tarquin in forum Q&A
    Replies: 4
    Last Post: 14 Sep 2017, 2:38 AM
  2. Replies: 0
    Last Post: 22 Jun 2017, 8:12 AM
  3. Timeout waiting for target(component) to be visible
    By sneha.bhogaraju in forum Q&A
    Replies: 5
    Last Post: 5 Jun 2017, 5:56 AM
  4. Replies: 7
    Last Post: 29 Mar 2017, 7:33 AM
  5. Display a message while waiting for js to complete
    By erezra in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 28 Feb 2008, 2:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •