title: Selecting an element by ng-click in Protractor
body: <p>in our angular app there are language icons to change language:</p>
  
  <pre><code>&lt;img style="cursor: pointer; margin-right: 5px; float: left;" height="25px"
   src="assets/images/english.jpg" ng-click="setLang('en')" class=""&gt;
  </code></pre>
  
  <p>How can I click on this icon with protractor? Based on other questions this should be the way:</p>
  
  <pre><code>element(by.css('[ng-click="setLang('en')"]')).click();
  </code></pre>
  
  <p>But this one throws a syntax error, because of the 'en' part.
  So I also tried these:</p>
  
  <pre><code>element(by.css('[ng-click="setLang(en)"]')).click();
  element(by.css('[ng-click="setLang()"]')).click();
  </code></pre>
  
  <p>But both of these resulted in: No element found using locator</p>
  
  <p>Please advise how can I click on this element?</p>