How to select date and time from devextreme calendar in cypress

159 views Asked by At

I want to select date and time from devextreme data time widget and where this data entered this field is locked.

DevExtreme Calendar DevExtreme Calendar and Time Control Calendar Control HTML Calendar Control HTML Time Control HTML Time Control HTML

1

There are 1 answers

0
Lyonne On BEST ANSWER

There are two <input> for each time value on the form.

The first is hidden but has the value see <input type="hidden" value="4"> and the second is for up/down control see <input inputmode="decimal"....

To change the value directly, use force:true on the hidden <input>

cy.get('dx-timeview')
  .find('input:hidden')
  .type('6', {force:true})