title: CSS selector path for text box that comes immediately after h3 with text "Company Name"
body: <p>Below is my html</p>
  
  <pre><code>&lt;div class="right" data-bindattr-13="13"&gt;
  &lt;h3&gt;Company Name&lt;/h3&gt;
  &lt;div class="input-row"&gt;
  &lt;input id="ember4258" class="ember-view ember-text-field" type="text"/&gt;
  &lt;/div&gt;
  &lt;h3&gt;Full Company Legal Name&lt;/h3&gt;
  &lt;div class="input-row"&gt;
  &lt;input id="ember4259" class="ember-view ember-text-field" type="text"/&gt;
  &lt;/div&gt;
  &lt;h3&gt;Company Phone&lt;/h3&gt;
  &lt;div class="input-row"&gt;
  &lt;input id="ember4260" class="ember-view ember-text-field" type="text"/&gt;
  &lt;/div&gt;
  &lt;h3&gt;Federal Tax / Employer ID (EIN)&lt;/h3&gt;
  &lt;div class="input-row"&gt;
  &lt;input id="ember4261" class="ember-view ember-text-field" type="text"/&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Since class value off all the text fields and respective parent div <b>class</b> attributes are same  I need to fill these text fields without using nth-of-type.<br></p>
  
  <p>I have done work around to create a CSS selector that should point the text box that is immediately after <code>&lt;h3&gt;Full Company Legal Name&lt;/h3&gt;</code> .</p>
  
  <p><b>h3:contains(^Company Name$)+div>input</b><br></p>
  
  <p>But my Capybara script is not recognizing the above way and throwing the below error.<br></p>
  
  <p>annotateInvalidSelectorError_': The given selector h3:contains(^Company Name$)+div>input is either invalid or does not result in a WebElement. The following error occurred: (Selenium::WebDriver::Error::InvalidSelectorError)
  InvalidSelectorError: An invalid or illegal selector was specified<br></p>
  
  <p>Can any one provide a CSS that matches my requirement?</p>
  
  <p>Regards,
  Avinash Duggirala</p>