title: Protractor getAttribute('value') returning as null
body: <p>I'm fairly new to Protractor and am having some difficulty in obtaining the text from an error box that displays only when a certain condition is met.</p>
  
  <p>I am sure that it is just a syntax issue. Below is the line I am using to attempt to get the "text" that displays in the box, and compare it to a preset static string.</p>
  
  <pre><code>expect(element(by.css('[ng-switch-default=""]')).getAttribute('value')).toEqual(expected_error_message);
  </code></pre>
  
  <p>I am receiving the message back:</p>
  
  <pre><code>Message: Expected null to equal 'User with login test8827391@gmail.com' already exists.'
  </code></pre>
  
  <p>So basically there is nothing to compare strings against because the value that "getAttribute('value') is supposed to grab is returning null".</p>
  
  <p>The block of HTML that I am referencing is found below:</p>
  
  <pre><code>&lt;div ng-class="config.message" ng-switch="" on="toaster.bodyOutputType"         class="toast-message"&gt;&lt;div ng-switch-default="" class="ng-binding"&gt;User with login  'test8827391@gmail.com' already exists.&lt;/div&gt;&lt;/div&gt;
  </code></pre>