findByText

List<TestNode> findByText(

  1. String text, {
  2. bool exact = false,
})

Find nodes containing text

Implementation

List<TestNode> findByText(String text, {bool exact = false}) => findAll(
  (node) =>
      exact ? node.textContent == text : node.textContent.contains(text),
);