title: Protractor - Finding elements by any attribute
body: <pre><code>&lt;ul class="menu"&gt;
      &lt;li ui-sref-active="active"&gt;
          &lt;a class="ng-scope" translate="menu.home" href="#/home"&gt;Home&lt;/a&gt;
      &lt;/li&gt;
      &lt;li ui-sref-active="active"&gt;
          &lt;a class="ng-scope" ui-sref="customer.list" translate="menu.customers" href="#/customers"&gt;Customers&lt;/a&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I want to search for the element using the text "Home" as in code below:</p>
  
  <pre><code>element(by.linkText("Home")).click();
  </code></pre>
  
  <p>But I need use too any other available attribute, in this case <code>translate</code>, to make it more accurate. </p>
  
  <p>Is there any possibility in doing that? I've seen things like this </p>
  
  <pre><code>by.css(".ng-scope input[translate='menu.customers']"); 
  </code></pre>
  
  <p>But it does not seem to work.</p>