Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DomCrawler][FrameworkBundle] Add assertSelectorCount #17640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,8 @@ Crawler Assertions
``assertSelectorExists(string $selector, string $message = '')``/``assertSelectorNotExists(string $selector, string $message = '')``
Asserts that the given selector does (not) match at least one element
in the response.
``assertSelectorCount(int $expectedCount, string $selector, string $message = '')``
Asserts that the expected number of selector elements are in the response
``assertSelectorTextContains(string $selector, string $text, string $message = '')``/``assertSelectorTextNotContains(string $selector, string $text, string $message = '')``
Asserts that the first element matching the given selector does (not)
contain the expected text.
Expand All @@ -1039,6 +1041,10 @@ Crawler Assertions
Asserts that value of the field of the first form matching the given
selector does (not) equal the expected value.

.. versionadded:: 6.3

The ``assertSelectorCount()`` method was introduced in Symfony 6.3.

Mailer Assertions
.................

Expand Down