title: How to click visible element in PHPUnit Selenium2TestCase?
body: <p>I have 2 buttons with the same name. For design reasons only one of them is visible at the same time.</p>
  
  <p>I want to click on any visible button.</p>
  
  <p>If first button is hided this expression </p>
  
  <pre><code>$this-&gt;byCssSelector('[name="saveAndClose"]')-&gt;click()
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>Element is not currently visible and so may not be interacted with
  </code></pre>
  
  <p>How to click on visible button?</p>