Blame view

vendor/codeception/base/src/Codeception/Exception/ElementNotFound.php 360 Bytes
cfe42223   曹明   提交初始代码
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
namespace Codeception\Exception;

use Codeception\Util\Locator;

class ElementNotFound extends \PHPUnit_Framework_AssertionFailedError
{
    public function __construct($selector, $message = null)
    {
        $selector = Locator::humanReadableString($selector);
        parent::__construct($message . " element with $selector was not found.");
    }
}