title: Puppeteer Button Press
body: <p>According to <a href="https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagepresskey-options" rel="noreferrer">https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagepresskey-options</a>, you can simulate the pressing of a keyboard button with Puppeteer.</p>
  
  <p>Here's what I do:</p>
  
  <pre><code>// First, click the search button
  await page.click('#outer-container &gt; nav &gt; span.right &gt; span.search-notification-wrapper &gt; span &gt; form &gt; input[type="text"]');
  // Focus on the input field
  await page.focus('#outer-container &gt; nav &gt; span.right &gt; span.search-notification-wrapper &gt; span &gt; form &gt; input[type="text"]');
  // Enter some text into the input field
  await page.type("Bla Bla");
  // Press Enter to search -&gt; this doesn't work!
  await page.press("Enter");
  </code></pre>
  
  <p>The pressing of the button doesn't produce anything. It's basically ignored.</p>
  
  <p>How can I simulate the Enter key to submit the form?</p>