findByText List<TestNode> findByText( String text, { 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), );