title: Two Step Definitions that are the same but one is for Given and one is for Then
body: <p>Cucumber feature files are throwing an error (multiple step definitions declared) if I try to have two similar step definitions but with different annotations - </p>
  
  <pre><code>@Then("^element with id \"([^\"]*)\"  is displayed$")
  
  &amp;
  
  @Given("^element with id \"([^\"]*)\" is displayed$")
  </code></pre>
  
  <p>So far I've fooled it by putting an extra space in the @Then definition (look carefully at @Then, after the regex). </p>
  
  <p>But this is not good practice.</p>
  
  <p>I want the @Given, because it sets up up my scenario, and I definitely need the @Then.</p>
  
  <p>How do I get passed this?</p>