Taiko
Documentation

Home / API Reference

timeField

This selector lets you identify time based input types [ date, datetime-local, month, time, week ] on a web page either with label or with attribute and value pairs and proximity selectors.

Examples

await write('31082020', into(timeField('Birthday:')))
await timeField('Birthday:').select(new Date('2020-09-20'))
await timeField('Birthday:').exists()
await timeField({'id':'Birthday'}).exists()
await timeField({id:'Birthday'},below('text')).exists()
await timeField(below('text')).exists()

Parameters


label

The label (human-visible name) of the file input field.


_options

attrValuePairs

Pairs of attribute and value like {"id":"name","class":"class-name"}


args relativeSelector

Proximity selectors


Returns

TimeFieldWrapper