javascript - how to send value in proctractor of date field -


this html

<input id="filter-datepicker" type="daterange"ranges="ranges"        class="form-control date-picker" placeholder="select date range" name="sensordetails.date"       ng-model="mydaterange" ranges="ranges" required /> 

this proctor js

var date = element(by.model('mydaterange')) date.sendkeys("2015-05-04 - 2015-09-30") 

this not working,i cannot send value.

you can try

executescript("document.getelementbyid('someelem').value = '2011-11-11';"); 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -