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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -