<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">
<p _ngcontent-c3="" class="msg">
cvds sadf
</p>
<a _ngcontent-c3="" class="btn btn-icon btn-edit">
</a>
<div _ngcontent-c3="" class="timestamp">
<time _ngcontent-c3="" class="time" datetime="11:00">
5:28 PM
</time>
</div>
</div>
Issue:
Element not found using locator
Assistance needed in locating this element via the provided 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");
});
});
Alternatively:
var el = element(by.id('msg_user_step_3'));
el.sendKeys("username 2");