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

Add an observe mode to slow interactions while running a script #51

Closed
zabil opened this issue Jul 17, 2018 · 2 comments
Closed

Add an observe mode to slow interactions while running a script #51

zabil opened this issue Jul 17, 2018 · 2 comments
Assignees

Comments

@zabil
Copy link
Member

zabil commented Jul 17, 2018

Current behavior

Taiko runs scripts fast and headless making it hard to see what's exactly happening. This forces a tester to add waits in the code.

for e.g.

await click(checkBox('class','toggle',near('to remove')));
await waitFor(5000);
await hover(button('class','destroy'));
await click(button('class','destroy'));
await waitFor(5000);

Expected behavior

Add flag --observe to taiko command line that introduces a three seconds wait between all commands and runs the script in non-headless mode.

For e.g.

$ taiko sample.js --observe

Make the wait time configurable in seconds.

Alternate names for the flag

  • --slow-mo
  • --watch
@NivedhaSenthil
Copy link
Member

Available with commit

@sswaroopgupta
Copy link
Contributor

Usage: $ taiko sample.js --observe

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

3 participants