You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During an execution workflow in the script, when the statement client.pause(0) was executed, the script execution waited indefinitely.
The documentation here points out that client.pause() will lead to indefinite wait time. However, client.pause(0) also does which is confusing and not intuitive too. Of course it is unlikely that one may call this statement, however, during execution flows where pause time is not predefined this statement can be called.
Steps to reproduce
Executing the script in the sample test will highlight the issue (/undocumented feature).
Sample test
Execute the below script.
describe("client wait time",function(){it("tests client wait time",async(client)=>{leturl="https://google.com";awaitclient.navigateTo(url);letduration=0;console.log(`Waiting now for ${duration} ms.`);client.pause(duration)client.end();});});
Description of the bug/issue
During an execution workflow in the script, when the statement
client.pause(0)
was executed, the script execution waited indefinitely.The documentation here points out that
client.pause()
will lead to indefinite wait time. However,client.pause(0)
also does which is confusing and not intuitive too. Of course it is unlikely that one may call this statement, however, during execution flows where pause time is not predefined this statement can be called.Steps to reproduce
Sample test
Execute the below script.
Command to run
Verbose Output
Nightwatch Configuration
No response
Nightwatch.js Version
2.3.3
Node Version
No response
Browser
Chrome
Operating System
Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: