Merge branch 'MDL-40690_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2013-07-17 00:17:43 +02:00
+4 -1
View File
@@ -30,7 +30,8 @@ require_once(__DIR__ . '/../../behat/behat_base.php');
use Behat\Mink\Exception\ExpectationException as ExpectationException,
Behat\Mink\Exception\ElementNotFoundException as ElementNotFoundException,
Behat\Mink\Exception\DriverException as DriverException,
WebDriver\Exception\NoSuchElement as NoSuchElement;
WebDriver\Exception\NoSuchElement as NoSuchElement,
WebDriver\Exception\StaleElementReference as StaleElementReference;
/**
* Cross component steps definitions.
@@ -84,6 +85,8 @@ class behat_general extends behat_base {
$content = $metarefresh->getAttribute('content');
} catch (NoSuchElement $e) {
return false;
} catch (StaleElementReference $e) {
return false;
}
// Getting the refresh time and the url if present.