wait_js
wait_js($Try_Second=30); - waits for the browser to process all currently active Java scripts. Used after navigation commands if the page has a lot of active JS that haven't been worked out yet.
the input Function accepts parameters:
$Try_Second – time allowed for all JS execution (in seconds)
After testing, the function returns the result of its work to the script :
true – successfully waited, navigation was drained
false – navigation failed