wait
wait($num=-1); - waits until the browser is free on the specified tab. Used after navigation commands.
the input Function accepts parameters:
$num – the number of the browser tab to navigate to. When $num=-1, the wait_for();.
After testing, the function returns the result of its work to the script :
true – successfully waited, navigation was drained
false – navigation failed