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.

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')
NameTypeDescription
attrValuePairsObjectPairs of attribute and value like {“id”:“name”,“class”:“class-name”}
_optionsObject
argsrelativeSelectorProximity selectors
TypeDescription
ColorWrapper