title: How to locate a ng-reflect ng class attribute in protractor?Error
body: <pre><code>&lt;div _ngcontent-c3="" class="bs-massage typ-user active" ng-reflect-klass="bs-massage  typ-user active" ng-reflect-ng-class="[object Object]" id="msg_user_step_2"&gt;
      &lt;p _ngcontent-c3="" class="msg"&gt;
          cvds sadf
      &lt;/p&gt;
      &lt;a _ngcontent-c3="" class="btn btn-icon btn-edit"&gt;
      &lt;/a&gt;
      &lt;div _ngcontent-c3="" class="timestamp"&gt;
          &lt;time _ngcontent-c3="" class="time" datetime="11:00"&gt;
              5:28 PM
          &lt;/time&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Failed No element found using locator</p>
  </blockquote>
  
  <p>Please help me to locate this element using the following code:</p>
  
  <pre><code>describe("Application Form", function()
          {
              it(" DETAILS", function()
              {
                  browser.get("http://localhost:4200/online-application-form.html/Personal");
                 element(by.css("bs-massage type-user active").sendKeys("username1"));
  var el = element(by.id('msg_user_step_3'));
              el.sendKeys("username 2");
  
       });
      });
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>var el = element(by.id('msg_user_step_3'));
  el.sendKeys("username 2");
  </code></pre>