title: Puppeteer (Evaluation failed: syntaxerror: invalid or unexpcted token)
body: <p>The error the following line:</p>
  
  <p><code>await page.waitForFunction('document.querySelector(".eo-validation-code").inner‌​Text.length == 32');</code></p>
  
  <p>Here it is in context:</p>
  
  <pre><code>    const puppeteer = require('puppeteer');
      puppeteer.launch({ignoreHTTPSErrors: true, headless: false}).then(async browser =&gt; {
      const page = await browser.newPage();
      console.log(2);
      await page.setViewport({ width: 500, height: 400 });
      console.log(3)
      const res = await page.goto('https://apps.realmail.dk/scratchcards/eovendo/gui/index.php?UserId=60sEBfXq6wNExN4%2bn9YSBw%3d%3d&amp;ServiceId=f147263e75262ecc82d695e795a32f4d');
      console.log(4)
      await page.waitForFunction('document.querySelector(".eo-validation-code").inner‌​Text.length == 32').catch(err =&gt; console.log(err));
  </code></pre>
  
  <p>It's basically a copy paste of this answer: <a href="https://stackoverflow.com/a/46825433/10238810">https://stackoverflow.com/a/46825433/10238810</a>
  With the exception that I have changed the querySelector to find an element with the class name "eo-validation-code".</p>