Skip to content

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.

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()
NameTypeDescription
labelstringThe label (human-visible name) of the file input field.
_optionsObject
attrValuePairsObjectPairs of attribute and value like {“id”:“name”,“class”:“class-name”}
argsrelativeSelectorProximity selectors
TypeDescription
TimeFieldWrapper