Taiko
Documentation

Home / API Reference

color

This selector lets you set color values on color picker on web page with attribute and value pairs and proximity selectors.

Examples

await color({'id':'colorId'}).exists()
await color({id:'colorId'},below('text')).exists()
await color(below('text')).exists()
await color(below('text')).select('#f236cf')
await color({'id':'colorId'}).select('#f236cf')

Parameters


attrValuePairs

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


_options

args relativeSelector

Proximity selectors


Returns

ColorWrapper