NAME
Kernel::Test::Role::Waits – provides waiting for test cases.
WaitFor()
wait with increasing sleep intervals until the given condition is true or the wait time is over. If the condition is not met in the specified time, it will throw an exception.
$SeleniumObject->WaitFor(
Callback => sub { ... } # Wait until function returns true
Time => 20, # optional, wait time in seconds (default 20)
);