About Article:
This article will cover how to make dynamic waits based on a variable using Extension in Virtuoso.
Description:
In test automation, dynamic waits are essential for ensuring that scripts run reliably across different environments and conditions.
Instead of using fixed wait times, dynamic waits allow the test to pause execution based on certain conditions, such as the presence of an element or a specific state of an application.
Solution:
An extension is available to perform a wait with dynamic duration using value from a variable.
This extension will take the wait time in seconds as an input.
So you can use it in the journey like “waitTime(10)” or “waitTime($waitTime)”
E.g:
As now you can use a variable, you can use the test data table as well.
❗ Warning: Don't use a wait time of more than 2 minutes; otherwise, the step will timeout.
Comments
0 comments
Please sign in to leave a comment.