title: Behat CSS selector - Finding by class can only be done with the first class
body: <p><strong>Scenario</strong></p>
  
  <p>Say you have an input field with multiple CSS classes, such as:</p>
  
  <pre><code>&lt;input class="form-control existing-user" value="Darth Darth Binks"/&gt;
  </code></pre>
  
  <p>And in the behat step you want to find its value by finding the input element by CSS class.</p>
  
  <p><strong>This works</strong></p>
  
  <pre><code>$field = $this-&gt;getPage()-&gt;findAllBy('css', 'form-control')[0]-&gt;getValue();
  // $field is now "Darth Darth Binks"
  </code></pre>
  
  <p><strong>This does NOT work</strong></p>
  
  <pre><code>$field = $this-&gt;getPage()-&gt;findAll('css', 'existing-user')[0]-&gt;getValue();
  // $field is now null
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <p>What is the difference here? Do I need to do something specific if I look for one of the classes that are NOT written first?</p>