Skip to content

Instantly share code, notes, and snippets.

@andriesss
Last active December 15, 2015 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andriesss/5303693 to your computer and use it in GitHub Desktop.
Save andriesss/5303693 to your computer and use it in GitHub Desktop.
<?php
public function waitForElementNotPresent($locator, $retries = 0)
{
$retries = abs(ceil($retries));
do {
try {
return parent::waitForElementNotPresent($locator);
} catch (\Exception $e) {}
} while ($retries-- !== 0);
throw $e;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment