TestQA1
3 years agoFrequent Contributor
Applying wait in BDD steps
Hi All,
I have a bdd structure like below:
When (....)
some actions like click etc
Then (...)
Assertion script method....
aqUtils.Delay(1000);
When (....)
some actions like click etc
And (....)
some other action
Then (...)
Assertion script method....
aqUtils.Delay(1000);
Now the problem is that I have to apply Delay after most assertion methods in Then because the scenarios run after one another and the script fail if the second When in the second scenario runs quickly after the first Then in the first scenario.
Is this the correct way to apply delay or there is a better alternative to deal with this issue?
Thanks very much.