title: How to print string value of a page object in Testcafe?
body: <p>I want to print the string value of a variable I find on a web page using testcafe console.log. I am trying to get the text value of an object I identify with a selector(frameSizetext below). The script is running and .contains() method verifies it contains the text I am checking for already but I would like to also print the text value to the console which would help to debug scripts more easily. </p>
  
  <pre><code> `test('Test ==&gt; Check size details are listed for article ', async t 
  =&gt; {
  
  const form = main.searchForm
  const list = main.sunglassesList
  const firstRow = list.getRowByIndex(0)
  const articlesList = main.articlesList
  const frameSizeText = articlesList.frameSize.innerText
  
      await t
      .wait(1000)
      .typeText(form.searchField, '44444')
      .click(form.submitButton)
      .expect(main.sunglassesList.list.innerText)
      .contains('SKODA Bar')
      .click(firstRow.element)
      .expect(frameSizeText, 'Text matches ' +frameSizeText)
      .contains('44/22-144', 'checking framesize text')
  
     console.log("[DEBUG], Framesize is detailed as:" 
      +frameSizeText.toString())
  
     })`
  
  
  
   ✓ Test ==&gt; Check frame color is detailed for article 
   [DEBUG], Framesize is detailed as:[object Object]
   ✓ Test ==&gt; Check size details are listed for article 
  </code></pre>
  
  <p>The text I am looking for is currently being printed out as "[object Object]" see above. How do I print the String value of this object?</p>