CodeExplorer CrawlerSelectorCount example
self::
assertThat(self::
getCrawler(),
new DomCrawlerConstraint\
CrawlerSelectorExists($selector),
$message);
} public static function assertSelectorNotExists(string
$selector, string
$message = ''
): void
{ self::
assertThat(self::
getCrawler(),
new LogicalNot(new DomCrawlerConstraint\
CrawlerSelectorExists($selector)),
$message);
} public static function assertSelectorCount(int
$expectedCount, string
$selector, string
$message = ''
): void
{ self::
assertThat(self::
getCrawler(),
new DomCrawlerConstraint\
CrawlerSelectorCount($expectedCount,
$selector),
$message);
} public static function assertSelectorTextContains(string
$selector, string
$text, string
$message = ''
): void
{ self::
assertThat(self::
getCrawler(), LogicalAnd::
fromConstraints( new DomCrawlerConstraint\
CrawlerSelectorExists($selector),
new DomCrawlerConstraint\
CrawlerSelectorTextContains($selector,
$text) ),
$message);
} public static function assertAnySelectorTextContains(string
$selector, string
$text, string
$message = ''
): void
{