question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `find` and `findAll` helpers.

See original GitHub issue

I’d like to add find and findAll to make it easy to swap ember-native-dom-helpers with @ember/test-helpers, but have find and findAll as deprecated…

I do not think this is “how we teach” folks, but this will make migration from much easier…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rwjbluecommented, Dec 16, 2017

FWIW, I think that this will be somewhat less common (especially with qunit-dom). Almost all of the find usage in the various (fairly large) apps that I reviewed are things like assert.equal(find('.some-thing').length, 2) (where the find is only used for an assertion).

1reaction
rwjbluecommented, Dec 16, 2017

Hmm, I’m confused. The API proposed (and merged) is to just “use the dom” via this.element.querySelector or this.element.querySelectorAll

Read more comments on GitHub >

github_iconTop Results From Across the Web

find and findAll should allow for finding elements outside the ...
My proposal would be to allow a second parameter, like qunit-dom , that allows you to override the "root element" to search. If...
Read more >
How to use find() and find_all() in BeautifulSoup?
Instead of find_all() just use find(). find_all() returns list of elements. v2 = soup.find("meta", {"property": "og:price:amount", ...
Read more >
re — Regular expression operations — Python 3.11.1 ...
Source code: Lib/re/ This module provides regular expression matching operations similar to those found in Perl. Both patterns and strings to be searched ......
Read more >
Python re.findall() – Everything You Need to Know - Finxter
The re.findall(pattern, string) method scans string from left to right, searching for all non-overlapping matches of the pattern . It returns a list...
Read more >
How To Use Find and Locate to Search for Files on Linux
This will help you search for files on your system using a variety ... If you want to find all files that don't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found