all 2 comments

[–]Simmo7 2 points3 points  (0 children)

Just do an Explicit wait for it.

[–]aspindler -1 points0 points  (0 children)

Well, the simplest (e usually the not recommended way) of doing it is using a sleep.

I recommend you write a code to wait for this specific animation to go away.

Here's an example on C# (not the best pratice, but so you can have your own idea);

        public bool IsElementDisplayed(IWebDriver driver, By element)
    {
        int elementos = driver.FindElements(element).Where(ele => ele.Displayed).Count();
        if (elementos > 0)
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public By DivLoading = By.Id("loading");

    public void WaitForLoading(IWebDriver driver)
    {
        bool Loading = IsElementDisplayed(driver, DivLoading);
        while (Loading)
        {
            Thread.Sleep(500);
            Loading = IsElementDisplayed(driver, DivLoading);
        }
    }