public function elementNotExists($selectorType, $selector, ElementInterface $container = null)
    {
        $container = $container ?: $this->session->getPage();
        $node = $container->find($selectorType, $selector);

        $message = sprintf(
            'An %s appears on this page, but it should not.',
            $this->getMatchingElementRepresentation($selectorType, $selector)
        );

        $this->assert(null === $node, $message);
    }
public function elementNotExists($selectorType, $selector, ElementInterface $container = null)
    {
        $container = $container ?: $this->session->getPage();
        $node = $container->find($selectorType, $selector);

        $message = sprintf(
            'An %s appears on this page, but it should not.',
            $this->getMatchingElementRepresentation($selectorType, $selector)
        );

        $this->assert(null === $node, $message);
    }
public function elementNotExists ( $ selectorType , $ selector , ElementInterface $ container = null ) { $ container = $ container ? : $ this -> session -> getPage ( ) ; $ node = $ container -> find ( $ selectorType , $ selector ) ; $ message = sprintf ( 'An %s appears on this page, but it should not.' , $ this -> getMatchingElementRepresentation ( $ selectorType , $ selector ) ) ; $ this -> assert ( null === $ node , $ message ) ; }
Checks that specific element does not exists on the current page.

@param string           $selectorType element selector type (css, xpath)
@param string|array     $selector     element selector
@param ElementInterface $container    document to check against

@throws ExpectationException
Checks that specific element does not exists on the current page .