/undo

Remove the last generated command.

If Testdriver doesn't do what you expect, you can easily remove newly generated commands with the /undo. You can undo as many times as you like.

For example given the following test:

- step: 
    - command: scroll-until-text
      text: Add to cart
- step: 
    - command: hover-text
      text: Add to cart
      action: click

Calling /undo will cause the last part to be undone and look like this:

- step: 
    - command: scroll-until-text
      text: Add to cart

Last updated