title: InvalidSelectorException when using selenium webdriver with intellij
body: <p>Just started learning Selenium. So the inspect element of the website is as follows:</p>
  
  <pre><code>&lt;select ng-model="selectedFacility" ng-options="facility as facility.name for facility in facilities" ng-change="afterSelectingFacility()" class="ng-pristine ng-valid ng-touched"&gt; &lt;option&gt; &lt;/option&gt; &lt;/select&gt;
  </code></pre>
  
  <p>I am using the following code to access the element:</p>
  
  <pre><code>Select facility = new Select(driver.findElement(By.cssSelector("input[class=('ng - pristine ng - valid ng-touched']")));
  </code></pre>
  
  <p>But I am getting the following error:</p>
  
  <pre><code>org.openqa.selenium.InvalidSelectorException: The given selector input[class=('ng - pristine ng - valid ng-touched'] is either invalid or does not result in a WebElement. The following error occurred: InvalidSelectorError: An invalid or illegal selector was specified
  </code></pre>
  
  <p>I have gone through some posts in stackoverflow but they didn't help me.</p>