Retry tests a specified number of times before finally throwing an error. Useful in testing unstable environments and selenium automation tests.