Skip to content

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

Name Type Description
attrValuePairs Object Pairs of attribute and value like {“id”:“name”,“class”:“class-name”}
_options Object
args relativeSelector Proximity selectors

Returns

Type Description
ColorWrapper