Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click on Moving links is not waiting for the link to stop moving #2711

Open
Ola1707 opened this issue Jul 31, 2023 · 0 comments
Open

Click on Moving links is not waiting for the link to stop moving #2711

Ola1707 opened this issue Jul 31, 2023 · 0 comments

Comments

@Ola1707
Copy link

Ola1707 commented Jul 31, 2023

Description

On HTML page with a link that is constantly moving, the click function doesn't wait for the link to stop moving

Steps to reproduce
openBrowser()
goto(html)
click("Moving Link")

expected:
to wait 10 seconds as indicated here:https://github.com/getgauge/taiko/blob/master/lib/actions/pageActionChecks.js#L71-L107

Actual:
clicks right away after a second or so

reproduced every time, on lots of speeds 0.1s, 1s and for 500 px

The html:

<!DOCTYPE html>
<html>
<head>
  <title>Moving Link Example</title>
  <style>
    /* Define the animation */
    @keyframes moveLink {
      0% { transform: translateX(0); }
      100% { transform: translateX(200px); }
    }

    /* Apply the animation to the link */
    a {
      display: inline-block;
      animation: moveLink 2s linear infinite; /* The link will move every 2 seconds */
    }
  </style>
</head>
<body>
  <a href="#">Moving Link</a>
</body>
</html>

seems very similar to this - #2550

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant