angularjs - protractor cannot focus element -
im new protractor , have tried remove custom directive(input-date) dom can mock ng-model
my html
<input type="text" name="rptdate" input-date placeholder="dd-mm-yyyy" data-ng-model="newpatreports.reportdate" />
js
var remove_inputdate = element(by.name("rptdate")); browser.executescript('arguments[0].removeattribute("input-date");', remove_inputdate.getwebelement());
now im tring insert seperate value ng-model, im getting error stating "cannot focus element", im not able insert value...what problem....?
any appreciated........thanks in advance
Comments
Post a Comment