When the .frame() command is used with await (as shown below), the command promise resolves early before the command can even find the target frame element. Due to this, the subsequent Nightwatch commands start running parallelly with the .frame() command.
This PR solves this issue by ensuring that the frame() command promise is only resolved once the command has completed its execution so that the subsequent commands only run after that.
When the
.frame()
command is used withawait
(as shown below), the command promise resolves early before the command can even find the target frame element. Due to this, the subsequent Nightwatch commands start running parallelly with the.frame()
command.This PR solves this issue by ensuring that the
frame()
command promise is only resolved once the command has completed its execution so that the subsequent commands only run after that.