title: Firefox not completing page load after click sent by selenium on sauce
body: <p>A test which works perfectly well locally with selenium webdriver is timing out when run remotely on saucelabs.com. The same test works for Chrome (both local and on sauce).</p>
  
  <p>From the client code's side, the <code>click</code> in the following code is never returning:</p>
  
  <pre><code>var someLink = await driver.findElement(By.className('some-class'));
  await someLink.click()
  </code></pre>
  
  <p>I'm using <code>jest</code> for the test framework with at 60 second timeout, so on the client end, I get that timeout error after a minute.</p>
  
  <p>When I log into sauce and look at the list of commands it processed I see:</p>
  
  <pre><code>POST elements
  </code></pre>
  
  <p>With parameters:</p>
  
  <pre><code>{"using":"css selector","value":".some-class"}
  </code></pre>
  
  <p>And the returned body is:</p>
  
  <pre><code>[{"ELEMENT":"2"}]
  </code></pre>
  
  <p>So that succeeds and finds the link. I then never see a <code>click</code> event on that element. Prior click events, and navigation commands are successful.</p>
  
  <p>When I watch the video playback of the session, I see it click the given link and the new page load in Firefox, but the spinner (actually a little dot going back and forth) in the top right never stops.</p>
  
  <p>I can't reproduce with Firefox myself, or even through the manual testing on Saucelabs where you can control the browser and VM through the web.</p>
  
  <p>I'm wondering if there's some synchronous code that's running that just isn't resolving. But I can't figure out how to find that out. The developer tools don't appear to have any way to show currently blocking code.</p>