title: CSS Selector without an attribute - Selenium Webdriver - Java
body: <p>How would I select the class "form-control" (which is a dropdown) for the "th" that equals "Pay From" using the CSS selector in Java?</p>
  
  <pre><code>&lt;table class="table"&gt;
  &lt;tbody&gt;
  &lt;tr&gt;
  &lt;th&gt;Pay From&lt;/th&gt;
  &lt;td&gt;
  &lt;select class="form-control col-sm-2 ng-pristine ng-invalid ng-invalid-required ng-touched" ng-model="payment.selectedPaymentMethod" ng-options="paymentMethod as paymentMethod.text for paymentMethod in payment.paymentMethods track by paymentMethod.paymentMethodId" name="accountType" required=""&gt;
  </code></pre>
  
  <p>I know you can do something similar to the following for 'nested' objects:</p>
  
  <pre><code>(By.cssSelector("table[class='table'] &gt; select[class^='form-control']"));
  </code></pre>
  
  <p>but how do I utilize the "th" that doesn't have an attribute?</p>