| Current Path : /var/www/html/vendor/codeception/codeception/src/Codeception/Exception/ |
| Current File : /var/www/html/vendor/codeception/codeception/src/Codeception/Exception/ElementNotFound.php |
<?php
namespace Codeception\Exception;
use Codeception\Util\Locator;
class ElementNotFound extends \PHPUnit\Framework\AssertionFailedError
{
public function __construct($selector, $message = null)
{
if (!is_string($selector) || strpos($selector, "'") === false) {
$selector = Locator::humanReadableString($selector);
}
parent::__construct($message . " element with $selector was not found.");
}
}