title: How to trigger google places autocomplete programmatically for integration testing?
body: <p><a href="https://groups.google.com/forum/#!topic/ruby-capybara/21jA_Ean1xg" rel="noreferrer">This</a> is almost what I'm looking for:</p>
  
  <pre><code>script = "$('#my_input').val('Paris').trigger('focus').trigger('keydown');"
  page.execute_script script
  </code></pre>
  
  <p>Input field gets selected, 'Paris' is written in it, keydown is pressed, google places autocomplete appears.</p>
  
  <p>But nothing happens when i raise mouseenter/click events.</p>
  
  <p>Tried changing class in selector to <code>.pac-item</code> like this (since <code>ul.autocomplete</code> does not exist):</p>
  
  <pre><code>$('.pac-item a:contains(\"Paris\")')
  </code></pre>
  
  <p>How to select one of the results from google places autocomplete programmatically using javascript (+jquery)?</p>