Currently, I am using Protractor along with JavaScript. The issue I'm facing is that the SendKeys(protractor.Key.TAB)
function does not seem to be tabbing out from the input field.
Please find below the HTML tag for the input field:
<td>
<input class="ng-pristine ng-untouched ng-valid" type="text" placeholder="Add a new member" ng-blur="addMember()" ng-model="newMemberText"/>
</td>
Here is the code snippet for Protractor that I have written:
this.When(/^add member to registration$/, function () {
var abc= element(by.model('newMemberText'));
abc.sendKeys('print');
abc.sendKeys(protractor.Key.TAB);
});
I have also attempted using abc.sendKeys(KeyboardEvent.TAB)
, but unfortunately both methods are not functioning as expected.