title: WebDriver Sampler: Error calling threadStarted java.lang.IllegalStateException: The process has not exited yet therefore no result is available
body: <pre><code>WDS.sampleResult.sampleStart()
  var support_ui = 
  JavaImporter(org.openqa.selenium.support.ui.WebDriverWait)
  var wait = new support_ui.WebDriverWait(WDS.browser, 15000)
  WDS.browser.get('http://jmeter-plugins.org')
  var support_ui = 
  JavaImporter(org.openqa.selenium.support.ui.WebDriverWait)
  var wait = new support_ui.WebDriverWait(WDS.browser, 15000)
  WDS.sampleResult.sampleEnd()
  WDS.sampleResuilt.setSuccessful(true)
  </code></pre>
  
  <p>When I run those scripts in jmeter WebDriver Sampler, it open start twice the Chrome without typing url and throws errors in log Viewer panel:</p>
  
  <p><a href="https://i.stack.imgur.com/586hR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/586hR.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/lnOfq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lnOfq.png" alt="enter image description here"></a></p>
  
  <p>I wonder why it does not work.</p>