title: document.querySelector via textContent
body: <p>Is it possible in JS to select the first element whatsoever with <code>document.querySelector</code> solely by a given textDocument, if the that <code>textDocument</code> is available on viewport when the code is executed?</p>
  
  <hr>
  
  <p>I am looking for a way <strong>without</strong> the following code because it brings out all relevant tagNames and <strong>filters</strong> them via textContent, but I want to <strong>select</strong> them by text content, not to filter.</p>
  
  <pre><code>document.querySelectorAll('tagName').forEach( (e)=&gt;{
      if (e.textContent.includes('Delete')) {
          e.click();
      }
  });
  </code></pre>