node-huxley icon indicating copy to clipboard operation
node-huxley copied to clipboard

Pause action not working

Open ocundale opened this issue 9 years ago • 4 comments

I need to wait for some elements to load on the page for my test, but whenever I try and use the pause action, it returns undefined? Even when I've recorded the action via hux --record, it doesn't seem to like it... Here's my json:

[
  {
    "action": "screenshot"
  },
  {
    "action": "pause",
    "ms": 5896
  },
  {
    "action": "screenshot"
  },
  {
    "action": "pause",
    "ms": 3218
  },
  {
    "action": "click",
    "y": 318,
    "x": 702
  },
  {
    "action": "pause",
    "ms": 1608
  },
  {
    "action": "click",
    "y": 318,
    "x": 554
  },
  {
    "action": "pause",
    "ms": 1758
  },
  {
    "action": "screenshot"
  }
]

and my terminal Output:


---
Replaying and writing screenshots for "toggle button"

---
  Taking screenshot 1
  Pause for undefined ms
  Clicking (570, 316)
  Taking screenshot 2
  Clicking (135, 164)
  Clicking (43, 382)
  Taking screenshot 3

Any help appreciated!

ocundale avatar Sep 16 '14 11:09 ocundale