I've encountered a problem regarding waiting for an animation to complete. Previously, I could rely on Selenium functions like
wait.until(ExpectedConditions....
However, this is no longer sufficient. The element in question can be found in the HTML code below:
<div content-c2="" class="nav-loader"></div>
This particular element has the following CSS style:
.nav-header[content-c2] .nav-loader[content-c2] {
width: 100%;
height: 2px;
background: #EE3D42;
float: left;
clear: both;
animation: 1.5s ease-out 0.5s 1 slideInFromLeft;
I need to wait until the loader finishes its animation before proceeding with other Selenium actions such as clicks. I'm trying to avoid using static delays and similar methods. Can anyone provide guidance on how to create a specific function that checks when the animation is completed? Thank you in advance for any assistance...