title: TestCafe: console.log() the value of a selector
body: <p>I try to select the text value <em>SR-12948</em> of the span below with a TestCafe selector and then assign it to a const. So I can add it as a string to the withAttribute method. That doesn't really work. So I want to check what the value of my const srCaseIDString is. Is it possible to do that with a console log? So it logs the value of that const in the same terminal as my test results and errors appear?</p>
  <p>This is my test:</p>
  <pre><code>&lt;span data-template=&quot;&quot; data-test-id=&quot;2014100715101007275150&quot; class=&quot;supporting_text_il&quot; style=&quot;&quot;&gt;SR-12948&lt;/span&gt;
  
  import { Selector, t } from &quot;testcafe&quot;;
  import XPathSelector from &quot;../utils/xpath-selector&quot;;
  
  const button= Selector(&quot;#button&quot;);  
  
  test(&quot;First Test&quot;, async (t) =&gt; {
       await t
          .click(button);
  
          const srCaseID = await  XPathSelector(&quot;//span[@data-test-id='2014100715101007275150']&quot;).innerText;
  
          console.log(srCaseID);
  
          const iframeCase = await Selector('iframe').withAttribute('title', srCaseIDString);
         
          await t
          .switchToIframe(iframeCase);
       
  });
  </code></pre>
  <p>Thanks!</p>