I have a table which I'm trying to extract the number of occurrences of a text match. The issue has sometimes the text is not visible in the table due to class="hide" so the queries I have tried are only returning the visible matches.
Example of what I have been trying is
Array.from(document.querySelectorAll('td:nth-child(2)'))
.find(el => el.textContent.trim() == 'AU2014280123A')
I have also tried innerHtml and other variations.
Below is the elements which show there are 2 matches but the query above is only returning one
Any ideas on how I can return all matches regardless if they are hidden or not?
Thanks