Elcodi\Bridge\BehatBridgeBundle\Context::responseShouldNotContainTestAttribute PHP Метод

responseShouldNotContainTestAttribute() публичный Метод

    public function responseShouldNotContainTestAttribute($value)
    {
        $session = $this->getSession();
        $page = $session->getPage();
        $testAttribute = $page->find('xpath', "//*[@data-test='{$value}']");
        if ($testAttribute !== null) {
            throw new ElementHtmlException("Found element attribute with value: {$value}", $session, $testAttribute);
        }
    }