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
Post a Comment