title: Invalid Selector Exception for CssSelector
body: <p>I am getting </p>
  
  <pre><code>org.openqa.selenium.InvalidSelectorException: An invalid or illegal selector was specified (WARNING: The server did not provide any stacktrace information)
  </code></pre>
  
  <p>when I am trying to exexute code in selenium webdriver to automate app in IE.</p>
  
  <pre><code>driver.findElement(By.cssSelector("a[href='javascript:XXX('ABCDEF');']")).click();
  </code></pre>
  
  <p>for this line of code.
  HTML:</p>
  
  <pre><code>&lt;a href="javascript:XXX('ABCDEF');"&gt;XXX&lt;/a&gt;
  </code></pre>
  
  <p>What could be the reason?</p>