title: We're sorry, but your computer or network may be sending automated queries error while loading Google API in automated test environment using Selenium
body: <p>I have a single page application that uses Google API JS client. </p>
  
  <p>There's also an automated functional test suite for this application written in Java and Selenium that is ran against a test environment every time the app is built. Test suite spawns multiple browsers that more or less simultaneously click through multiple flows of the application.</p>
  
  <p>This often causes Google to return HTTP 403 for the following file:</p>
  
  <pre><code>&lt;script src="https://apis.google.com/js/api.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>with additional information: </p>
  
  <blockquote>
    <p>We're sorry, but your computer or network may be sending automated queries. To protect our users we can't process your request right now. </p>
  </blockquote>
  
  <p>I tried looking into Google API quotas, but they seem to affect only the actual API calls, not the client library itself. </p>
  
  <p>Has anyone encountered a similar issue? We can detect this situation and retry a failed test, but it results in even more calls to apis.google.com and make the tests awfully slow. It's also harder to determine if the test time has increased because of changes in the application or because the GAPI client library failed to load. </p>