question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `speed` option for actions

See original GitHub issue

Proposal

This affects to delay between action parts (for example between mousedown and mouseup in click, or between each symbol typing in typeText), to the cursor speed. This option you can use if you need to emulate human-behavior (it can be useful for cases when your scripts work properly only if you do actions no too fast).

Now we have the following options: Mouse Action Options, Click Action Options, Typing Action Options. I suppose it should be a new type of options:

Action Options: { speed: <number> }

Mouse, Click and Typing options extend it. So, we add options argument to Select Text, Type Text and Press Key actions.

Multiply

If the test run speed options is set to some value1 and action option is set to the value2 - it will be multiplied and the action will be executing with speed value1 * value2

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:20 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
helen-dikarevacommented, Oct 20, 2016

I don’t really like idea to multiply factors. May be just use speed factor specified for action, if we don’t have it - use factor specified for test controller.

1reaction
georgiy-abbasovcommented, Oct 20, 2016

Multiply

Imho, there should be action speed option priority upon testController speed option and they should be independent. Is possible a scenario where all actions are slow and one should be executed quickly ? :

test `my test` (async t => {
    t.speed = 0.5;
    // ... bunch of slow actions
    await t.click({ speed: 1 });
    // ... bunch of slow actions
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Easily Speed Up or Slow Down Your Videos - TechSmith
Step 1: Add clip speed​​ Clip speed allows you to play a video clip faster or slower than its original speed. To apply...
Read more >
How do I create a slow-motion or speed-up effect?
On the timeline, select the video to which you want to apply the effect · Choose Speed from the editing toolbar > tap...
Read more >
Beginner's Guide to Video Speed Controller Chrome Extension
Beginner's Guide to Video Speed Controller Chrome Extension - Learn Faster Series Pt 2 · http://nhl.tv) so I didn't miss any of the...
Read more >
Change Clip Speed and Duration in Adobe Premiere Pro
Right-click on the clip, and select Show Clip Keyframes > Time Remapping > Speed. · Drag the rubber band upward or downward to...
Read more >
Set the start time and speed of an animation effect
Set the speed ... To run your animation effect at a faster or slower pace, change the Duration setting. ... On the Animations...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found