Cypress: Calendar select in Cypress IO

Created on 12 Nov 2018  路  3Comments  路  Source: cypress-io/cypress

Hi!
Dear Friends, I have problem with cypress io.
I am looking for request about select date from calendar.

input data-v-628c5b10="" type="date" id="startDate" name="startDate" class="form-control"

Date on website looks:

From date:
2018-11-11
To date:
2018-11-13
input data-v-628c5b10="" type="date" id="endDate" name="endDate" class="form-control"

How I can write code to my test to select for example:

start date 2016-01-01
finish date 2019-01-01

Thank You for Your help.

question

All 3 comments

I paste code from site in first post.
Down, You have how its look on website.

github

Docs for typing into date input

cy.get('#startDate').type('2016-01-01')
cy.get('#endDate').type('2019-01-01')

You can ask questions about Cypress in our online chat: https://gitter.im/cypress-io/cypress

How to click on the calendar icon of this input. i want to open the calendar once we click on the calendar , but it's HTML element

name="meeting-time" value="2018-06-12T19:30"
min="2018-06-07T00:00" max="2018-06-14T00:00">

Was this page helpful?
0 / 5 - 0 ratings

Related issues

weskor picture weskor  路  3Comments

EirikBirkeland picture EirikBirkeland  路  3Comments

jennifer-shehane picture jennifer-shehane  路  3Comments

igorpavlov picture igorpavlov  路  3Comments

tahayk picture tahayk  路  3Comments