wait_for
wait_for($Try_Navigate_Second=15,$Try_Navigate_Count=1); - waits for a certain amount of time and a certain number of times until the browser is free. Used after navigation commands. This command is inserted by default in all navigation-related operations.
the input Function accepts parameters:
$Try_Navigate_Second – time allowed for one navigation attempt (in seconds)$Try_Navigate_Count – number of navigation attempts
After testing, the function returns the result of its work to the script :
true – successfully waited, navigation was performed in the specified time
false – navigation was not performed in the specified time